Loading core/jni/AndroidRuntime.cpp +6 −0 Original line number Original line Diff line number Diff line Loading @@ -589,6 +589,12 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv) mOptions.add(opt); mOptions.add(opt); } } property_get("ro.config.low_ram", propBuf, ""); if (strcmp(propBuf, "true") == 0) { opt.optionString = "-XX:LowMemoryMode"; mOptions.add(opt); } /* /* * Enable or disable dexopt features, such as bytecode verification and * Enable or disable dexopt features, such as bytecode verification and * calculation of register maps for precise GC. * calculation of register maps for precise GC. Loading Loading
core/jni/AndroidRuntime.cpp +6 −0 Original line number Original line Diff line number Diff line Loading @@ -589,6 +589,12 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv) mOptions.add(opt); mOptions.add(opt); } } property_get("ro.config.low_ram", propBuf, ""); if (strcmp(propBuf, "true") == 0) { opt.optionString = "-XX:LowMemoryMode"; mOptions.add(opt); } /* /* * Enable or disable dexopt features, such as bytecode verification and * Enable or disable dexopt features, such as bytecode verification and * calculation of register maps for precise GC. * calculation of register maps for precise GC. Loading