RFR: 8267404: vmTestbase/vm/mlvm/anonloader/stress/oome/metaspace/Test.java failed with OutOfMemoryError
Jie Fu
jiefu at openjdk.java.net
Fri May 21 11:41:33 UTC 2021
On Fri, 21 May 2021 09:59:18 GMT, Thomas Stuefe <stuefe 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.
Thanks @tstuefe for your nice analysis.
Much has been learned from you all today.
Due to the race between heap and metaspace, I prefer the second approach (rewrite the whole test with ProcessBuilder).
Thanks.
Best regards,
Jie
-------------
PR: https://git.openjdk.java.net/jdk/pull/4140
More information about the hotspot-runtime-dev
mailing list