Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
12033:bd902affe102 | 12080:5888334c9c24 |
---|---|
114 Universe::print_heap_after_gc(); | 114 Universe::print_heap_after_gc(); |
115 } | 115 } |
116 if (_gc_heap_log != NULL) { | 116 if (_gc_heap_log != NULL) { |
117 _gc_heap_log->log_heap_after(); | 117 _gc_heap_log->log_heap_after(); |
118 } | 118 } |
119 } | |
120 | |
121 void CollectedHeap::register_nmethod(nmethod* nm) { | |
122 assert_locked_or_safepoint(CodeCache_lock); | |
123 } | |
124 | |
125 void CollectedHeap::unregister_nmethod(nmethod* nm) { | |
126 assert_locked_or_safepoint(CodeCache_lock); | |
119 } | 127 } |
120 | 128 |
121 void CollectedHeap::trace_heap(GCWhen::Type when, GCTracer* gc_tracer) { | 129 void CollectedHeap::trace_heap(GCWhen::Type when, GCTracer* gc_tracer) { |
122 const GCHeapSummary& heap_summary = create_heap_summary(); | 130 const GCHeapSummary& heap_summary = create_heap_summary(); |
123 const MetaspaceSummary& metaspace_summary = create_metaspace_summary(); | 131 const MetaspaceSummary& metaspace_summary = create_metaspace_summary(); |