commit | ae982f976866a709cf2465d203b2fe83420a37f4 | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Sat Dec 08 12:31:10 2018 +0000 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Sat Dec 08 12:31:10 2018 +0000 |
tree | 88085ec635a0d45de7c2360adb869a8a2f150329 | |
parent | c1baad2f913cbe37c7b634499ae23a10dd60d278 [diff] [blame] |
Remove CHECK given jvmti deallocates memory. Missed from https://android-review.googlesource.com/c/platform/art/+/844516 bug: 120632268 Test: com.android.server.wifi.test Change-Id: I18eacc329ddb7a3708e45fc2b4fefe448c8757f2
diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc index fdb6b86..749758a 100644 --- a/runtime/jit/jit_code_cache.cc +++ b/runtime/jit/jit_code_cache.cc
@@ -758,6 +758,10 @@ } void JitCodeCache::FreeCodeAndData(const void* code_ptr) { + if (IsInZygoteExecSpace(code_ptr)) { + // No need to free, this is shared memory. + return; + } uintptr_t allocation = FromCodeToAllocation(code_ptr); // Notify native debugger that we are about to remove the code. // It does nothing if we are not using native debugger.