The test fails when run with -XX:+UseZGC -Xmx32m:
[debuggee] [0.031s][info][gc] Using The Z Garbage Collector
[debuggee] Error occurred during initialization of VM
[debuggee] java.lang.OutOfMemoryError: Java heap too small
Thread[MainThread,5,MainThreadGroup] stack: (length = 14)
java.base@12-internal/java.lang.Thread.dumpThreads(Native Method)
java.base@12-internal/java.lang.Thread.getAllStackTraces(Thread.java:1657)
app//jdk.test.lib.process.ProcessTools.startProcess(ProcessTools.java:252)
app//lib.jdb.Jdb.<init>(Jdb.java:90)
app//lib.jdb.Jdb.launchLocal(Jdb.java:64)
app//lib.jdb.JdbTest.setup(JdbTest.java:57)
app//lib.jdb.JdbTest.run(JdbTest.java:49)
app//BreakpointWithFullGC.main(BreakpointWithFullGC.java:66)
java.base@12-internal/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base@12-internal/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
java.base@12-internal/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base@12-internal/java.lang.reflect.Method.invoke(Method.java:566)
app//com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
java.base@12-internal/java.lang.Thread.run(Thread.java:834)
Thread[Finalizer,8,system] stack: (length = 4)
java.base@12-internal/java.lang.Object.wait(Native Method)
java.base@12-internal/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
java.base@12-internal/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:176)
java.base@12-internal/java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:170)
Thread[Signal Dispatcher,9,system] stack: (length = 0)
Thread[Common-Cleaner,8,InnocuousThreadGroup] stack: (length = 5)
java.base@12-internal/java.lang.Object.wait(Native Method)
java.base@12-internal/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
java.base@12-internal/jdk.internal.ref.CleanerImpl.run(CleanerImpl.java:148)
java.base@12-internal/java.lang.Thread.run(Thread.java:834)
java.base@12-internal/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:134)
Thread[Reference Handler,10,system] stack: (length = 3)
java.base@12-internal/java.lang.ref.Reference.waitForReferencePendingList(Native Method)
java.base@12-internal/java.lang.ref.Reference.processPendingReferences(Reference.java:241)
java.base@12-internal/java.lang.ref.Reference$ReferenceHandler.run(Reference.java:213)
Thread[main,5,main] stack: (length = 4)
java.base@12-internal/java.lang.Object.wait(Native Method)
java.base@12-internal/java.lang.Thread.join(Thread.java:1305)
java.base@12-internal/java.lang.Thread.join(Thread.java:1379)
app//com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:74)
----------System.err:(16/897)----------
Failed to start a process (thread dump follows)
java.lang.NullPointerException
at lib.jdb.JdbTest.shutdown(JdbTest.java:66)
at lib.jdb.JdbTest.run(JdbTest.java:52)
at BreakpointWithFullGC.main(BreakpointWithFullGC.java:66)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:834)