Mercurial > hg > graal-jvmci-8
diff src/share/vm/gc_interface/collectedHeap.cpp @ 12080:5888334c9c24
7145569: G1: optimize nmethods scanning
Summary: Add a list of nmethods to the RSet for a region that contain references into the region. Skip scanning the code cache during root scanning and scan the nmethod lists during RSet scanning instead.
Reviewed-by: tschatzl, brutisso, mgerdin, twisti, kvn
author | johnc |
---|---|
date | Thu, 15 Aug 2013 10:52:18 +0200 |
parents | 27c53c9f3a7e |
children | d6c266999345 |
line wrap: on
line diff
--- a/src/share/vm/gc_interface/collectedHeap.cpp Thu Aug 15 10:05:50 2013 +0200 +++ b/src/share/vm/gc_interface/collectedHeap.cpp Thu Aug 15 10:52:18 2013 +0200 @@ -118,6 +118,14 @@ } } +void CollectedHeap::register_nmethod(nmethod* nm) { + assert_locked_or_safepoint(CodeCache_lock); +} + +void CollectedHeap::unregister_nmethod(nmethod* nm) { + assert_locked_or_safepoint(CodeCache_lock); +} + void CollectedHeap::trace_heap(GCWhen::Type when, GCTracer* gc_tracer) { const GCHeapSummary& heap_summary = create_heap_summary(); const MetaspaceSummary& metaspace_summary = create_metaspace_summary();