equal
deleted
inserted
replaced
76 size_t desired_survivor_size = (size_t)((((double) survivor_capacity)*TargetSurvivorRatio)/100); |
76 size_t desired_survivor_size = (size_t)((((double) survivor_capacity)*TargetSurvivorRatio)/100); |
77 uint result; |
77 uint result; |
78 |
78 |
79 if (AlwaysTenure || NeverTenure) { |
79 if (AlwaysTenure || NeverTenure) { |
80 assert(MaxTenuringThreshold == 0 || MaxTenuringThreshold == markOopDesc::max_age + 1, |
80 assert(MaxTenuringThreshold == 0 || MaxTenuringThreshold == markOopDesc::max_age + 1, |
81 err_msg("MaxTenuringThreshold should be 0 or markOopDesc::max_age + 1, but is " UINTX_FORMAT, MaxTenuringThreshold)); |
81 "MaxTenuringThreshold should be 0 or markOopDesc::max_age + 1, but is " UINTX_FORMAT, MaxTenuringThreshold); |
82 result = MaxTenuringThreshold; |
82 result = MaxTenuringThreshold; |
83 } else { |
83 } else { |
84 size_t total = 0; |
84 size_t total = 0; |
85 uint age = 1; |
85 uint age = 1; |
86 assert(sizes[0] == 0, "no objects with age zero should be recorded"); |
86 assert(sizes[0] == 0, "no objects with age zero should be recorded"); |