Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 17935:7384f6a12fc1
8038212: Method::is_valid_method() check has performance regression impact for stackwalking
Summary: Only prune metaspace virtual spaces at safepoint so walking them is safe outside a safepoint.
Reviewed-by: mgerdin, mgronlun, hseigel, stefank
author | coleenp |
---|---|
date | Thu, 15 May 2014 18:23:26 -0400 |
parents | 270d7cb38f40 |
children | 78bbf4d43a14 |
comparison
equal
deleted
inserted
replaced
17934:366c198c896d | 17935:7384f6a12fc1 |
---|---|
5414 // updating the RSet. | 5414 // updating the RSet. |
5415 | 5415 |
5416 if (_g1h->is_in_g1_reserved(p)) { | 5416 if (_g1h->is_in_g1_reserved(p)) { |
5417 _par_scan_state->push_on_queue(p); | 5417 _par_scan_state->push_on_queue(p); |
5418 } else { | 5418 } else { |
5419 assert(!ClassLoaderDataGraph::contains((address)p), | 5419 assert(!Metaspace::contains((const void*)p), |
5420 err_msg("Otherwise need to call _copy_metadata_obj_cl->do_oop(p) " | 5420 err_msg("Otherwise need to call _copy_metadata_obj_cl->do_oop(p) " |
5421 PTR_FORMAT, p)); | 5421 PTR_FORMAT, p)); |
5422 _copy_non_heap_obj_cl->do_oop(p); | 5422 _copy_non_heap_obj_cl->do_oop(p); |
5423 } | 5423 } |
5424 } | 5424 } |