Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit fc0fd96

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

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
"disables this check.") \
310310
range(0.0, (double)max_uintx) \
311311
\
312-
product(bool, G1AllowPreventiveGC, true, DIAGNOSTIC, \
312+
product(bool, G1UsePreventiveGC, true, DIAGNOSTIC, \
313313
"Allows collections to be triggered proactively based on the \
314314
number of free regions and the expected survival rates in each \
315315
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
@@ -242,7 +242,7 @@ private void testWithEvacuationFailureLogs() throws Exception {
242242
"-XX:G1EvacuationFailureALotCount=100",
243243
"-XX:G1EvacuationFailureALotInterval=1",
244244
"-XX:+UnlockDiagnosticVMOptions",
245-
"-XX:-G1AllowPreventiveGC",
245+
"-XX:-G1UsePreventiveGC",
246246
"-Xlog:gc+phases=debug",
247247
GCTestWithEvacuationFailure.class.getName());
248248

@@ -255,7 +255,7 @@ private void testWithEvacuationFailureLogs() throws Exception {
255255
"-Xmn16M",
256256
"-Xms32M",
257257
"-XX:+UnlockDiagnosticVMOptions",
258-
"-XX:-G1AllowPreventiveGC",
258+
"-XX:-G1UsePreventiveGC",
259259
"-Xlog:gc+phases=trace",
260260
GCTestWithEvacuationFailure.class.getName());
261261

0 commit comments

Comments
 (0)