-
Enhancement
-
Resolution: Fixed
-
P4
-
10
-
b13
Today we have the following in parse_xss:
// The min and max sizes match the values in globals.hpp, but scaled
// with K. The values have been chosen so that alignment with page
// size doesn't change the max value, which makes the conversions
// back and forth between Xss value and ThreadStackSize value easier.
// The values have also been chosen to fit inside a 32-bit signed type.
const julong min_ThreadStackSize = 0;
const julong max_ThreadStackSize = 1 * M;
and the corresponding values in globals.hpp:
product_pd(intx, ThreadStackSize, \
"Thread Stack Size (in Kbytes)") \
range(0, 1 * M) \
The values (0, 1*M) are duplicated in both files. However, seeing the actual values will make the comment easier to understand. Let's add an assert here to make we have the same values in both places.
// The min and max sizes match the values in globals.hpp, but scaled
// with K. The values have been chosen so that alignment with page
// size doesn't change the max value, which makes the conversions
// back and forth between Xss value and ThreadStackSize value easier.
// The values have also been chosen to fit inside a 32-bit signed type.
const julong min_ThreadStackSize = 0;
const julong max_ThreadStackSize = 1 * M;
and the corresponding values in globals.hpp:
product_pd(intx, ThreadStackSize, \
"Thread Stack Size (in Kbytes)") \
range(0, 1 * M) \
The values (0, 1*M) are duplicated in both files. However, seeing the actual values will make the comment easier to understand. Let's add an assert here to make we have the same values in both places.
- relates to
-
JDK-8262328 Templatize JVMFlag boilerplate access methods
-
- Resolved
-