8211150: G1 Full GC not purging code root memory and hence causing memory leak

Thu, 04 Oct 2018 19:35:30 +0000

author
poonam
date
Thu, 04 Oct 2018 19:35:30 +0000
changeset 9492
a3df1579a864
parent 9491
50ed692d0a48
child 9493
882a55369341

8211150: G1 Full GC not purging code root memory and hence causing memory leak
Reviewed-by: tschatzl, sjohanss

src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp	Thu Oct 04 10:12:35 2018 +0100
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp	Thu Oct 04 19:35:30 2018 +0000
     1.3 @@ -1464,6 +1464,9 @@
     1.4        // Rebuild the strong code root lists for each region
     1.5        rebuild_strong_code_roots();
     1.6  
     1.7 +      // Purge code root memory
     1.8 +      purge_code_root_memory();
     1.9 +
    1.10        if (true) { // FIXME
    1.11          MetaspaceGC::compute_new_size();
    1.12        }

mercurial