Thu, 04 Oct 2018 19:35:30 +0000
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 }