changeset 8975:a3df1579a864

8211150: G1 Full GC not purging code root memory and hence causing memory leak Reviewed-by: tschatzl, sjohanss
author poonam
date Thu, 04 Oct 2018 19:35:30 +0000
parents 50ed692d0a48
children 882a55369341
files src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp	Thu Oct 04 10:12:35 2018 +0100
+++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp	Thu Oct 04 19:35:30 2018 +0000
@@ -1464,6 +1464,9 @@
       // Rebuild the strong code root lists for each region
       rebuild_strong_code_roots();
 
+      // Purge code root memory
+      purge_code_root_memory();
+
       if (true) { // FIXME
         MetaspaceGC::compute_new_size();
       }