[jdk17u-dev] RFR: 8328166: Epsilon: 'EpsilonHeap::allocate_work' misuses the parameter 'size' as size in bytes
Aleksey Shipilev
shade at openjdk.org
Mon Apr 22 09:22:31 UTC 2024
On Mon, 22 Apr 2024 09:08:25 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> So this could have resulted in a crash instead of OOM when nearing a full heap, right?
No, I don't think so? Given that we currently use `size` in heapwords as size in bytes, we always get to resizing code with _smaller_ value. So I think the "worst case" is that allocation code would loop through expansion multiple times before `par_allocate` would finally complete, or we figure there is not enough space.
-------------
PR Comment: https://git.openjdk.org/jdk17u-dev/pull/2423#issuecomment-2068904896
More information about the jdk-updates-dev
mailing list