RFR: 8357135: java.lang.OutOfMemoryError: Error creating or attaching to libjvmci after JDK-8356447 [v4]

Doug Simon dnsimon at openjdk.org
Wed May 21 20:46:04 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 one additional commit since the last revision:

  added comments justifying use of -Xint

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/25307/files
  - new: https://git.openjdk.org/jdk/pull/25307/files/1a79617e..b0d45b1b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25307&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25307&range=02-03

  Stats: 7 lines in 2 files changed: 5 ins; 0 del; 2 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