8220342: Remove scavenge_root_nmethods_do from VM_HeapWalkOperation::collect_simple_roots

Reviewed-by: sspitsyn, ehelin
This commit is contained in:
Stefan Karlsson 2019-03-14 09:14:20 +01:00
parent b9cf9e7ca4
commit 3796014d86

View File

@ -28,7 +28,6 @@
#include "classfile/symbolTable.hpp"
#include "classfile/systemDictionary.hpp"
#include "classfile/vmSymbols.hpp"
#include "code/codeCache.hpp"
#include "jvmtifiles/jvmtiEnv.hpp"
#include "logging/log.hpp"
#include "memory/allocation.inline.hpp"
@ -3044,11 +3043,6 @@ inline bool VM_HeapWalkOperation::collect_simple_roots() {
blk.set_kind(JVMTI_HEAP_REFERENCE_OTHER);
Universe::oops_do(&blk);
// If there are any non-perm roots in the code cache, visit them.
blk.set_kind(JVMTI_HEAP_REFERENCE_OTHER);
CodeBlobToOopClosure look_in_blobs(&blk, !CodeBlobToOopClosure::FixRelocations);
CodeCache::scavenge_root_nmethods_do(&look_in_blobs);
return true;
}