mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8006432: Ratio flags should be unsigned
Flags changed to be of uintx type Reviewed-by: johnc, tamao
This commit is contained in:
parent
63fd60257c
commit
2c17d50a8b
7 changed files with 14 additions and 17 deletions
|
@ -274,8 +274,8 @@ ConcurrentMarkSweepGeneration::ConcurrentMarkSweepGeneration(
|
|||
// end of a collection, we let CMSTriggerRatio of the (purported) free
|
||||
// space be allocated before initiating a new collection cycle.
|
||||
//
|
||||
void ConcurrentMarkSweepGeneration::init_initiating_occupancy(intx io, intx tr) {
|
||||
assert(io <= 100 && tr >= 0 && tr <= 100, "Check the arguments");
|
||||
void ConcurrentMarkSweepGeneration::init_initiating_occupancy(intx io, uintx tr) {
|
||||
assert(io <= 100 && tr <= 100, "Check the arguments");
|
||||
if (io >= 0) {
|
||||
_initiating_occupancy = (double)io / 100.0;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue