diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp
index f4643f4..8bff482 100644
--- a/core/jni/AndroidRuntime.cpp
+++ b/core/jni/AndroidRuntime.cpp
@@ -17,6 +17,7 @@
#define LOG_TAG "AndroidRuntime"
//#define LOG_NDEBUG 0
+#define CUSTOM_RUNTIME_HEAP_MAX 32m
#include <android_runtime/AndroidRuntime.h>
#include <utils/IBinder.h>
@@ -595,7 +596,7 @@ void AndroidRuntime::start(const char* className, const bool startSystemServer)
#undef _make_max_heap_opt
#else
/* limit memory use to 16MB */
- opt.optionString = "-Xmx16m";
+ opt.optionString = "-Xmx32m";
#endif
mOptions.add(opt);
Android 扩大内存分配
最新推荐文章于 2023-08-07 23:12:52 发布