RFR: 8286865: vmTestbase/vm/mlvm/meth/stress/jni/nativeAndMH/Test.java fails with Out of space in CodeCache
Ramkumar Sunderbabu
rsunderbabu at openjdk.org
Tue Aug 19 10:09:42 UTC 2025
MethodHandle invocations with Xcomp are filling up CodeCache quickly in the test, especially in machines with high number of processors.
It is possible to measure code cache consumption per invocation, estimate overall consumption and bail out before CodeCache runs out of memory.
But it is much simpler to exclude the test for Xcomp flag.
Additional Change: MethodHandles.lookup was done unnecessarily invoked for all iterations. Replaced it with single invocation.
PS: This issue is not seen in JDK 20 and above, possibly due to JDK-8290025, but the exclusion guards against vagaries of CodeCache management.
-------------
Commit messages:
- 8286865: vmTestbase/vm/mlvm/meth/stress/jni/nativeAndMH/Test.java fails with Out of space in CodeCache
Changes: https://git.openjdk.org/jdk/pull/26840/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26840&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8286865
Stats: 24 lines in 1 file changed: 15 ins; 8 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/26840.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26840/head:pull/26840
PR: https://git.openjdk.org/jdk/pull/26840
More information about the hotspot-compiler-dev
mailing list