Integrated: 8328168: Epsilon: Premature OOM when allocating object larger than uncommitted heap size
Guoxiong Li
gli at openjdk.org
Mon Mar 18 11:30:35 UTC 2024
On Thu, 14 Mar 2024 14:06:45 GMT, Guoxiong Li <gli at openjdk.org> wrote:
> Hi all,
>
> When an object size meets the following three conditions, the allocation will fail unexpectedly.
>
> 1. `object_size` > `uncommitted_size`
> 2. `object_size` > `committed_but_unused_size`
> 3. `object_size` < `unused_size` (`unused_size` equals `uncommitted_size + committed_but_unused_size`)
>
> Please read the newly added test of this patch for the concrete case.
>
> Thanks for taking the time to review.
>
> Best Regrads,
> -- Guoxiong
This pull request has now been integrated.
Changeset: 7baec662
Author: Guoxiong Li <gli at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/7baec6622254fc21e315b974a213605a7605daac
Stats: 51 lines in 2 files changed: 47 ins; 0 del; 4 mod
8328168: Epsilon: Premature OOM when allocating object larger than uncommitted heap size
Reviewed-by: shade, tschatzl
-------------
PR: https://git.openjdk.org/jdk/pull/18304
More information about the hotspot-gc-dev
mailing list