Skip to content

Commit 0cc0f06

Browse files
author
Ivan Walulya
committed
8304015: G1: Metaspace-induced GCs should not trigger maximal compaction
Reviewed-by: ayang, tschatzl
1 parent 43eca1d commit 0cc0f06

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/hotspot/share/gc/g1/g1CollectedHeap.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,12 +1065,10 @@ void G1CollectedHeap::do_full_collection(bool clear_all_soft_refs) {
10651065
// Currently, there is no facility in the do_full_collection(bool) API to notify
10661066
// the caller that the collection did not succeed (e.g., because it was locked
10671067
// out by the GC locker). So, right now, we'll ignore the return value.
1068-
// When clear_all_soft_refs is set we want to do a maximal compaction
1069-
// not leaving any dead wood.
1070-
bool do_maximal_compaction = clear_all_soft_refs;
1071-
bool dummy = do_full_collection(true, /* explicit_gc */
1072-
clear_all_soft_refs,
1073-
do_maximal_compaction);
1068+
1069+
do_full_collection(false, /* explicit_gc */
1070+
clear_all_soft_refs,
1071+
false /* do_maximal_compaction */);
10741072
}
10751073

10761074
bool G1CollectedHeap::upgrade_to_full_collection() {

0 commit comments

Comments
 (0)