-
Bug
-
Resolution: Fixed
-
P4
-
8-shenandoah, 11-shenandoah, 12, 13
-
b21
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8228950 | 12u-cpu | Aleksey Shipilev | P4 | Resolved | Fixed | master |
JDK-8223960 | 12.0.2 | Aleksey Shipilev | P4 | Resolved | Fixed | b03 |
Heap capacity is in size_t. Which means expressions like this are subject to overflow:
size_t min_threshold = ShenandoahMinFreeThreshold * heap->max_capacity() / 100;
Consider the x86_32 case with max_capacity = 1G. ShenandoahMinFreeThreshold >= 5 overflows it.
size_t min_threshold = ShenandoahMinFreeThreshold * heap->max_capacity() / 100;
Consider the x86_32 case with max_capacity = 1G. ShenandoahMinFreeThreshold >= 5 overflows it.
- backported by
-
JDK-8223960 Shenandoah: overflows in calculations involving heap capacity
-
- Resolved
-
-
JDK-8228950 Shenandoah: overflows in calculations involving heap capacity
-
- Resolved
-