Test nsk/jvmti/ResourceExhausted/resexhausted003 limits metaspace size. 9m is not enough if sharing classes are disabled. It starts failing with -XX:+UseCompactObjectHeaders just because CDS archives are no built this mode. Never executed with CDS off before.
Verified that it pass now with CDS off with and without UseCompactObjectHeaders. I removed also other heap limits just because they are not needed and only might confuse test readers. ------------- Commit messages: - 8346998: Test nsk/jvmti/ResourceExhausted/resexhausted003 fails with java.lang.OutOfMemoryError when CDS is off Changes: https://git.openjdk.org/jdk/pull/22936/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22936&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8346998 Stats: 5 lines in 1 file changed: 0 ins; 3 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/22936.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/22936/head:pull/22936 PR: https://git.openjdk.org/jdk/pull/22936