RFR: 8357135: java.lang.OutOfMemoryError: Error creating or attaching to libjvmci after JDK-8356447 [v3]
Doug Simon
dnsimon at openjdk.org
Wed May 21 20:41:35 UTC 2025
> 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.
Doug Simon has updated the pull request incrementally with three additional commits since the last revision:
- tests that use 'ulimit -v' should run with -Xint
- Revert "do not exit VM if libjvmci env creation fails"
This reverts commit 7eb259b92553669065db57d230476cf465a67d02.
- Revert "consolidate JVMCI eager initialization"
This reverts commit 32986d1a2b741ee8c9090cefbecc148bb8fbd7e4.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25307/files
- new: https://git.openjdk.org/jdk/pull/25307/files/32986d1a..1a79617e
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25307&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25307&range=01-02
Stats: 55 lines in 9 files changed: 30 ins; 18 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/25307.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25307/head:pull/25307
PR: https://git.openjdk.org/jdk/pull/25307
More information about the graal-dev
mailing list