RFR: 8267404: vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java failed with OutOfMemoryError

Jie Fu jiefu at openjdk.java.net
Fri May 21 14:01:55 UTC 2021


On Fri, 21 May 2021 11:38:21 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> 2. Rewrite the whole test: let it start a jvm with ProcessBuilder with a very low metaspace - too low to load the JDK itself. Something like this: `java -Xshare:off -XX:MaxMetaspaceSize=1m -version`. The VM should not come up; instead we should see an `OutOfMemoryError: Metaspace` at stdout.

Hi @tstuefe ,

The test has been rewrite with ProcessBuilder.
Please review it.

Testing:
   - The affected test on Linux/x86_{64, 32}, MacOSX

Thanks.

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

PR: https://git.openjdk.java.net/jdk/pull/4140


More information about the hotspot-runtime-dev mailing list