Integrated: 8357135: java.lang.OutOfMemoryError: Error creating or attaching to libjvmci after JDK-8356447
Doug Simon
dnsimon at openjdk.org
Thu May 22 17:04:00 UTC 2025
On Mon, 19 May 2025 17:50:21 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
> As of [JDK-8356447](https://bugs.openjdk.org/browse/JDK-8356447), libgraal initialization happens during VM startup. If during this initialization, the libgraal heap cannot be created due to lack of virtual address space, the VM will exit with:
>
>
> Error occurred during initialization of VM
> java.lang.OutOfMemoryError: Error creating or attaching to libjvmci (err: -1000000801, description: Reserving address space for the new isolate failed.)
>
>
> This causes problems for tests that limit the virtual address space with `ulimit -v` such as `gc/arguments/TestUseCompressedOopsFlagsWithUlimit.java` and `vmTestbase/nsk/jvmti/Allocate/alloc001/alloc001.java`.
> Since these tests were passing on libgraal prior to JDK-8356447, they obviously do not require JIT compilation. The simplest fix is to then use `-Xint` to disable the JIT.
This pull request has now been integrated.
Changeset: 1258af42
Author: Doug Simon <dnsimon at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/1258af42bec92a2797897cb6126b60b582a29d76
Stats: 7 lines in 2 files changed: 7 ins; 0 del; 0 mod
8357135: java.lang.OutOfMemoryError: Error creating or attaching to libjvmci after JDK-8356447
Reviewed-by: never, yzheng
-------------
PR: https://git.openjdk.org/jdk/pull/25307
More information about the graal-dev
mailing list