From e8a6b27656080ac8f21a79d7b56c95c834b35cc8 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Tue, 29 May 2018 03:56:37 +0300 Subject: jvm: Set max objects to 4096 temporarily Real Android has lower limit, (IIRC the 256 we had), but since we don't actually do any ref counting yet, nothing is ever unloaded. Thus lets just raise this limit for now. --- src/jvm/jvm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jvm') diff --git a/src/jvm/jvm.h b/src/jvm/jvm.h index 0de88d2..e2f99e4 100644 --- a/src/jvm/jvm.h +++ b/src/jvm/jvm.h @@ -54,7 +54,7 @@ struct jvm { // every class object's `this_class` member points back to [0], causing recursion. // Every other object or class definition is created lazily as needed, only [0] is special. // `jobject`'s we return through JNI are actually (index+1) to this array, not pointers. - struct jvm_object objects[256]; + struct jvm_object objects[4096]; // Native methods registered by the application. // Nothing special, but there's no need to access this array either really. -- cgit v1.2.3-70-g09d2