8211150: G1 Full GC not purging code root memory and hence causing memory leak
authorpoonam
Wed, 03 Oct 2018 19:30:49 +0000
changeset 52007 b16820c2336d
parent 52006 82dc590fa586
child 52008 6f04692c7d51
8211150: G1 Full GC not purging code root memory and hence causing memory leak Reviewed-by: tschatzl, sjohanss
src/hotspot/share/gc/g1/g1CollectedHeap.cpp
--- a/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Wed Oct 03 07:41:28 2018 -0400
+++ b/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Wed Oct 03 19:30:49 2018 +0000
@@ -1049,6 +1049,9 @@
   // Rebuild the strong code root lists for each region
   rebuild_strong_code_roots();
 
+  // Purge code root memory
+  purge_code_root_memory();
+
   // Start a new incremental collection set for the next pause
   start_new_collection_set();