[jdk25u-dev] RFR: 8286865: vmTestbase/vm/mlvm/meth/stress/jni/nativeAndMH/Test.java fails with Out of space in CodeCache

Roland Mesde duke at openjdk.org
Mon Feb 2 21:28:25 UTC 2026


Backporting JDK-8286865: vmTestbase/vm/mlvm/meth/stress/jni/nativeAndMH/Test.java fails with Out of space in CodeCache.

This PR exclude test from running with -Xcomp flag and also moves MethodHandles.lookup() outside iteration loop (was unnecessarily invoked per iteration).

For parity with Oracle JDK.

Ran related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:

make test TEST=test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/jni/nativeAndMH/Test.java

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

Commit messages:
 - Backport 1b11bea76ba29d1dfa414ad7e10693cf054bb96f

Changes: https://git.openjdk.org/jdk25u-dev/pull/217/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=217&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/jdk25u-dev/pull/217.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/217/head:pull/217

PR: https://git.openjdk.org/jdk25u-dev/pull/217


More information about the jdk-updates-dev mailing list