summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-05-29 03:56:37 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-05-29 03:56:37 +0300
commite8a6b27656080ac8f21a79d7b56c95c834b35cc8 (patch)
tree12bccbd626cc162159b7a0df0bcf0f9c73467dfe /src
parent1d839b762fa4e902b23655a90629fa19005516d9 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/jvm/jvm.h2
1 files changed, 1 insertions, 1 deletions
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.