From 3395fbc20bcd20948bec8958db91b304c17cacd8 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 14 Nov 2016 12:40:52 +0000 Subject: Revert "Revert "Revert "JIT root tables.""" libcore failures: dalvikvm32 F 11-14 03:04:06 14870 14870 jit_code_cache.cc:310] Check failed: new_string != nullptr This reverts commit 75afcdd3503a8a8518e5b23d21b6e73306ce39ce. Change-Id: I5a6b6b48aa79a763d1ff1ba4d85d63811254787d --- runtime/runtime.cc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'runtime/runtime.cc') diff --git a/runtime/runtime.cc b/runtime/runtime.cc index d90e8965de..ca65c2bea3 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -81,7 +81,6 @@ #include "intern_table.h" #include "interpreter/interpreter.h" #include "jit/jit.h" -#include "jit/jit_code_cache.h" #include "jni_internal.h" #include "linear_alloc.h" #include "mirror/array.h" @@ -492,14 +491,6 @@ void Runtime::SweepSystemWeaks(IsMarkedVisitor* visitor) { GetMonitorList()->SweepMonitorList(visitor); GetJavaVM()->SweepJniWeakGlobals(visitor); GetHeap()->SweepAllocationRecords(visitor); - if (GetJit() != nullptr) { - // Visit JIT literal tables. Objects in these tables are classes and strings - // and only classes can be affected by class unloading. The strings always - // stay alive as they are strongly interned. - // TODO: Move this closer to CleanupClassLoaders, to avoid blocking weak accesses - // from mutators. See b/32167580. - GetJit()->GetCodeCache()->SweepRootTables(visitor); - } // All other generic system-weak holders. for (gc::AbstractSystemWeakHolder* holder : system_weak_holders_) { -- cgit v1.2.3-59-g8ed1b