diff options
author | Ian Rogers <irogers@google.com> | 2014-04-22 11:42:59 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-04-22 14:52:19 -0700 |
commit | 987560fee798e48fb725c44b796d8ca7a5872ad6 (patch) | |
tree | d61f35a129847f3f5fbed1436649e75acd940b3f /runtime/native | |
parent | 44b0053fdb7ad8a30138d29f714172a7dc69efb8 (diff) | |
download | art-987560fee798e48fb725c44b796d8ca7a5872ad6.zip art-987560fee798e48fb725c44b796d8ca7a5872ad6.tar.gz art-987560fee798e48fb725c44b796d8ca7a5872ad6.tar.bz2 |
Remove support for app JNI workarounds.
Change-Id: I4396df7e93fcace4b5b19c2c387e5c30089182a6
Diffstat (limited to 'runtime/native')
-rw-r--r-- | runtime/native/dalvik_system_VMRuntime.cc | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/runtime/native/dalvik_system_VMRuntime.cc b/runtime/native/dalvik_system_VMRuntime.cc index 5c5eaa1..76c5866 100644 --- a/runtime/native/dalvik_system_VMRuntime.cc +++ b/runtime/native/dalvik_system_VMRuntime.cc @@ -164,23 +164,12 @@ static jstring VMRuntime_vmLibrary(JNIEnv* env, jobject) { } static void VMRuntime_setTargetSdkVersionNative(JNIEnv* env, jobject, jint targetSdkVersion) { - // This is the target SDK version of the app we're about to run. + // This is the target SDK version of the app we're about to run. It is intended that this a place + // where workarounds can be enabled. // Note that targetSdkVersion may be CUR_DEVELOPMENT (10000). // Note that targetSdkVersion may be 0, meaning "current". - if (targetSdkVersion > 0 && targetSdkVersion <= 13 /* honeycomb-mr2 */) { - Runtime* runtime = Runtime::Current(); - JavaVMExt* vm = runtime->GetJavaVM(); - if (vm->check_jni) { - LOG(INFO) << "CheckJNI enabled: not enabling JNI app bug workarounds."; - } else { - LOG(INFO) << "Turning on JNI app bug workarounds for target SDK version " - << targetSdkVersion << "..."; - - vm->work_around_app_jni_bugs = true; - LOG(WARNING) << "Permenantly disabling heap compaction due to jni workarounds"; - Runtime::Current()->GetHeap()->DisableCompaction(); - } - } + UNUSED(env); + UNUSED(targetSdkVersion); } static void VMRuntime_registerNativeAllocation(JNIEnv* env, jobject, jint bytes) { |