Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/genCollectedHeap.cpp @ 10183:868d87ed63c8
8008966: NPG: Inefficient Metaspace counter functions cause large young GC regressions
Reviewed-by: mgerdin, coleenp
author | jmasa |
---|---|
date | Tue, 12 Feb 2013 14:15:45 -0800 |
parents | a08c80e9e1e5 |
children | b06ac540229e |
comparison
equal
deleted
inserted
replaced
10182:5c93c1f61226 | 10183:868d87ed63c8 |
---|---|
375 const bool do_clear_all_soft_refs = clear_all_soft_refs || | 375 const bool do_clear_all_soft_refs = clear_all_soft_refs || |
376 collector_policy()->should_clear_all_soft_refs(); | 376 collector_policy()->should_clear_all_soft_refs(); |
377 | 377 |
378 ClearedAllSoftRefs casr(do_clear_all_soft_refs, collector_policy()); | 378 ClearedAllSoftRefs casr(do_clear_all_soft_refs, collector_policy()); |
379 | 379 |
380 const size_t metadata_prev_used = MetaspaceAux::used_in_bytes(); | 380 const size_t metadata_prev_used = MetaspaceAux::allocated_used_bytes(); |
381 | 381 |
382 print_heap_before_gc(); | 382 print_heap_before_gc(); |
383 | 383 |
384 { | 384 { |
385 FlagSetting fl(_is_gc_active, true); | 385 FlagSetting fl(_is_gc_active, true); |
554 } | 554 } |
555 | 555 |
556 if (complete) { | 556 if (complete) { |
557 // Delete metaspaces for unloaded class loaders and clean up loader_data graph | 557 // Delete metaspaces for unloaded class loaders and clean up loader_data graph |
558 ClassLoaderDataGraph::purge(); | 558 ClassLoaderDataGraph::purge(); |
559 MetaspaceAux::verify_metrics(); | |
559 // Resize the metaspace capacity after full collections | 560 // Resize the metaspace capacity after full collections |
560 MetaspaceGC::compute_new_size(); | 561 MetaspaceGC::compute_new_size(); |
561 update_full_collections_completed(); | 562 update_full_collections_completed(); |
562 } | 563 } |
563 | 564 |