diff --git a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp index aed811b35eb78836ea492bf84c34fe8a44e76a49..d1ca35e427a12831f8062151713c924f1789cffd 100644 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @@ -1464,6 +1464,9 @@ bool G1CollectedHeap::do_collection(bool explicit_gc, // 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(); }