Integrated: 8313395: LotsUnloadTest.java fails with OOME transiently with libgraal
Ioi Lam
iklam at openjdk.org
Thu Jul 10 21:42:46 UTC 2025
On Wed, 9 Jul 2025 23:53:53 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> It seems like when libgraal is used as the JIT, more heap space is allocated in the Java heap to support JIT compilation. This causes OOM in the test when the heap is very small.
>
> The test allocates 1024 * 2 MB of heap objects but at any time keeps only 8 MB of them alive. The test expects class unloading would happen when the heap is filled with garbage. By increasing the heap size from 64MB to 256MB, we can still accomplish what the test wants to do but will be more friendly to libgraal.
>
> The fact that libgraal uses more memory is still a concern, but that should be tested elsewhere, and is not the responsibility of this test.
This pull request has now been integrated.
Changeset: ee0d309b
Author: Ioi Lam <iklam at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ee0d309bbd33302d8c6f35155e975db77aaea785
Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
8313395: LotsUnloadTest.java fails with OOME transiently with libgraal
Reviewed-by: dnsimon
-------------
PR: https://git.openjdk.org/jdk/pull/26230
More information about the hotspot-runtime-dev
mailing list