-
Bug
-
Resolution: Fixed
-
P2
-
16, 17, 18
-
b21
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8277702 | 17.0.3-oracle | Aleksey Shipilev | P2 | Resolved | Fixed | b01 |
JDK-8277526 | 17.0.2 | Aleksey Shipilev | P2 | Closed | Fixed | b06 |
In PretouchTask::pretouch, the calculation for the number of chunks that need to be touched is
(total_bytes + chunk_size - 1) / chunk_size
The numerator can overflow if total_bytes and chunk_size are sufficiently large, leading to a result probably quite different from what's desired. It could even be zero, leading to requesting no threads being requested.
(total_bytes + chunk_size - 1) / chunk_size
The numerator can overflow if total_bytes and chunk_size are sufficiently large, leading to a result probably quite different from what's desired. It could even be zero, leading to requesting no threads being requested.
- backported by
-
JDK-8277702 PretouchTask num_chunks calculation can overflow
-
- Resolved
-
-
JDK-8277526 PretouchTask num_chunks calculation can overflow
-
- Closed
-
- relates to
-
JDK-8254972 Fix pretouch chunk calculations
-
- Resolved
-
- links to
-
Commit openjdk/jdk17u/66c051a9
-
Commit openjdk/jdk/60cb27dc
-
Review openjdk/jdk17u/286
-
Review openjdk/jdk/5993
(2 links to)