8211150: G1 Full GC not purging code root memory and hence causing memory leak
Reviewed-by: tschatzl, sjohanss
--- 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();