8186502: Assert when range testing G1RefProcDrainInterval on 64-bit systems

Reviewed-by: sjohanss, sangheki
This commit is contained in:
Leo Korinth 2017-11-06 09:41:54 +01:00
parent 18e9e80688
commit c2935fa4a4
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -74,10 +74,10 @@
"in milliseconds.") \
range(1.0, DBL_MAX) \
\
product(intx, G1RefProcDrainInterval, 10, \
product(int, G1RefProcDrainInterval, 10, \
"The number of discovered reference objects to process before " \
"draining concurrent marking work queues.") \
range(1, max_intx) \
range(1, INT_MAX) \
\
experimental(double, G1LastPLABAverageOccupancy, 50.0, \
"The expected average occupancy of the last PLAB in " \

View File

@ -216,6 +216,9 @@ public class JVMOptionsUtils {
case "CMSPrecleanDenominator":
option.addPrepend("-XX:CMSPrecleanNumerator=" + ((new Integer(option.getMin())) - 1));
break;
case "G1RefProcDrainInterval":
option.addPrepend("-XX:+ExplicitGCInvokesConcurrent");
break;
case "InitialTenuringThreshold":
option.addPrepend("-XX:MaxTenuringThreshold=" + option.getMax());
break;