Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8366562 | 25.0.2 | Axel Boldt-Christmas | P2 | Resolved | Fixed | master |
JDK-8366684 | 25.0.1 | Nibedita Jena | P2 | Closed | Fixed | b07 |
While investigating JDK-8366147 we also found that ZPageAllocator::cleanup_failed_commit_multi_partition is broken.
The implementation is intended to work by going over each partitions part of the allocation one by one and returning any harvested or committed and mapped memory to to cache and returning any failed to be committed physical associations back to our internal free lists.
But when deriving what part of the memory is associated with which partition it uses the wrong variable and ends up working with the wrong memory. And multiple partitions will end up working on the same supposedly mutually exclusive memory.
The impact of this bug is more severe thanJDK-8366147. As we may in the best case end up crashing if we free the same physical associations, and in the worst case map already mapped memory to another address and returning it to the cache (effectively multi mapping the heap).
The implementation is intended to work by going over each partitions part of the allocation one by one and returning any harvested or committed and mapped memory to to cache and returning any failed to be committed physical associations back to our internal free lists.
But when deriving what part of the memory is associated with which partition it uses the wrong variable and ends up working with the wrong memory. And multiple partitions will end up working on the same supposedly mutually exclusive memory.
The impact of this bug is more severe than
- backported by
-
JDK-8366562 ZGC: ZPageAllocator::cleanup_failed_commit_multi_partition is broken
-
- Resolved
-
-
JDK-8366684 ZGC: ZPageAllocator::cleanup_failed_commit_multi_partition is broken
-
- Closed
-
- relates to
-
JDK-8366462 Test gc/z/TestCommitFailure.java#Normal failed: expected output missing
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk25u/00961280
-
Commit(master) openjdk/jdk/501e6aed
-
Review(master) openjdk/jdk25u/141
-
Review(master) openjdk/jdk/26953
(2 links to)