Skip to content

Commit 3f2c372

Browse files
author
Thomas Schatzl
committed
8269126: Rename G1AllowPreventiveGC option to G1UsePreventiveGC
Reviewed-by: iwalulya, kbarrett
1 parent a977157 commit 3f2c372

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ static size_t get_num_regions_adjust_for_plab_waste(size_t byte_count) {
14161416
}
14171417

14181418
bool G1Policy::preventive_collection_required(uint alloc_region_count) {
1419-
if (!G1AllowPreventiveGC || !Universe::is_fully_initialized()) {
1419+
if (!G1UsePreventiveGC || !Universe::is_fully_initialized()) {
14201420
// Don't attempt any preventive GC's if the feature is disabled,
14211421
// or before initialization is complete.
14221422
return false;

src/hotspot/share/gc/g1/g1_globals.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
"percentage of the currently used memory.") \
341341
range(0.0, 1.0) \
342342
\
343-
product(bool, G1AllowPreventiveGC, true, DIAGNOSTIC, \
343+
product(bool, G1UsePreventiveGC, true, DIAGNOSTIC, \
344344
"Allows collections to be triggered proactively based on the \
345345
number of free regions and the expected survival rates in each \
346346
section of the heap.")

test/hotspot/jtreg/gc/g1/TestGCLogMessages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private void testWithEvacuationFailureLogs() throws Exception {
248248
"-XX:G1EvacuationFailureALotCount=100",
249249
"-XX:G1EvacuationFailureALotInterval=1",
250250
"-XX:+UnlockDiagnosticVMOptions",
251-
"-XX:-G1AllowPreventiveGC",
251+
"-XX:-G1UsePreventiveGC",
252252
"-Xlog:gc+phases=debug",
253253
GCTestWithEvacuationFailure.class.getName());
254254

@@ -261,7 +261,7 @@ private void testWithEvacuationFailureLogs() throws Exception {
261261
"-Xmn16M",
262262
"-Xms32M",
263263
"-XX:+UnlockDiagnosticVMOptions",
264-
"-XX:-G1AllowPreventiveGC",
264+
"-XX:-G1UsePreventiveGC",
265265
"-Xlog:gc+phases=trace",
266266
GCTestWithEvacuationFailure.class.getName());
267267

test/hotspot/jtreg/gc/g1/TestVerifyGCType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private static void testYoungEvacFail() throws Exception {
126126
"-XX:G1EvacuationFailureALotCount=100",
127127
"-XX:G1EvacuationFailureALotInterval=1",
128128
"-XX:+UnlockDiagnosticVMOptions",
129-
"-XX:-G1AllowPreventiveGC"});
129+
"-XX:-G1UsePreventiveGC"});
130130
output.shouldHaveExitValue(0);
131131

132132
verifyCollection("Pause Young (Normal)", false, false, true, output.getStdout());

0 commit comments

Comments
 (0)