[jdk17u-dev] RFR: 8328166: Epsilon: 'EpsilonHeap::allocate_work' misuses the parameter 'size' as size in bytes

Thomas Stuefe stuefe at openjdk.org
Mon Apr 22 09:11:33 UTC 2024


On Mon, 22 Apr 2024 08:27:54 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Semi-clean backport to handle Epsilon corner case. The uncleanliness comes from copyright header updates, I accepted the version from incoming changeset. Will mark the backport clean.
> 
> Additional testing:
>  - [x] MacOS AArch64 server fastdebug, `gc/epsilon`

Looks good.

So this could have resulted in a crash instead of OOM when nearing a full heap, right?

-------------

Marked as reviewed by stuefe (Reviewer).

PR Review: https://git.openjdk.org/jdk17u-dev/pull/2423#pullrequestreview-2014209069


More information about the jdk-updates-dev mailing list