mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8152180: SIGFPE in CMSCollector::preclean with big CMSScheduleRemarkSamplingRatio
Rephrased the calculation routine to avoid an overflow for CMSScheduleRemarkSamplingRatio Reviewed-by: jwilhelm, drwhite
This commit is contained in:
parent
c66cf8bde7
commit
10c7cac93e
1 changed files with 1 additions and 1 deletions
|
@ -3598,7 +3598,7 @@ void CMSCollector::preclean() {
|
|||
size_t capacity = get_eden_capacity();
|
||||
// Don't start sampling unless we will get sufficiently
|
||||
// many samples.
|
||||
if (used < (capacity/(CMSScheduleRemarkSamplingRatio * 100)
|
||||
if (used < (((capacity / CMSScheduleRemarkSamplingRatio) / 100)
|
||||
* CMSScheduleRemarkEdenPenetration)) {
|
||||
_start_sampling = true;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue