mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8005602: NPG: classunloading does not happen while CMS GC with -XX:+CMSClassUnloadingEnabled is used
Call purge() on CLDG after sweep(), reorder purge() call in GenCollectedHeap Reviewed-by: jmasa, stefank
This commit is contained in:
parent
79c091f287
commit
a4a4c34e96
3 changed files with 11 additions and 8 deletions
|
@ -6068,6 +6068,10 @@ void CMSCollector::sweep(bool asynch) {
|
|||
verify_work_stacks_empty();
|
||||
verify_overflow_empty();
|
||||
|
||||
if (should_unload_classes()) {
|
||||
ClassLoaderDataGraph::purge();
|
||||
}
|
||||
|
||||
_intra_sweep_timer.stop();
|
||||
_intra_sweep_estimate.sample(_intra_sweep_timer.seconds());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue