To produce:
1) run java -XX:+FlightRecorder -XX:StartFlightRecording=disk=true,dumponexit=true,filename=recording.jfr,path-to-gc-roots=true -jar SwingSet2.jar
2) exit the application or run JFR.dump from jcmd
JFR crashed:
--------------- S U M M A R Y ------------
Command Line: -XX:+FlightRecorder -XX:StartFlightRecording=disk=true,dumponexit=true,filename=/Users/zhengyu.gu/tmp/myrecording_1g.jfr,path-to-gc-roots=true SwingSet2.jar
Host: "MacBookPro18,1" arm64, 10 cores, 32G, Darwin 21.6.0, macOS 12.6.3 (21G419)
Time: Wed Mar 8 17:39:07 2023 MST elapsed time: 43.670083 seconds (0d 0h 0m 43s)
--------------- T H R E A D ---------------
Current thread (0x000000014f808340): VMThread "VM Thread" [stack: 0x000000016e9e4000,0x000000016ebe7000] [id=14595]
Stack: [0x000000016e9e4000,0x000000016ebe7000], sp=0x000000016ebe6840, free space=2058k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x0000000000000c04
V [libjvm.dylib+0x828a44] _ZN22PathToGcRootsOperation4doitEv+0x1f4
V [libjvm.dylib+0xa5e7a4] _ZN12VM_Operation8evaluateEv+0xe0
V [libjvm.dylib+0xa62e40] _ZN8VMThread18evaluate_operationEP12VM_Operation+0xf4
V [libjvm.dylib+0xa63708] _ZN8VMThread13inner_executeEP12VM_Operation+0x218
V [libjvm.dylib+0xa62b04] _ZN8VMThread3runEv+0xd4
V [libjvm.dylib+0x9e5974] _ZN6Thread8call_runEv+0xe0
V [libjvm.dylib+0x7f5e20] _ZL19thread_native_entryP6Thread+0x158
C [libsystem_pthread.dylib+0x726c] _pthread_start+0x94
1) run java -XX:+FlightRecorder -XX:StartFlightRecording=disk=true,dumponexit=true,filename=recording.jfr,path-to-gc-roots=true -jar SwingSet2.jar
2) exit the application or run JFR.dump from jcmd
JFR crashed:
--------------- S U M M A R Y ------------
Command Line: -XX:+FlightRecorder -XX:StartFlightRecording=disk=true,dumponexit=true,filename=/Users/zhengyu.gu/tmp/myrecording_1g.jfr,path-to-gc-roots=true SwingSet2.jar
Host: "MacBookPro18,1" arm64, 10 cores, 32G, Darwin 21.6.0, macOS 12.6.3 (21G419)
Time: Wed Mar 8 17:39:07 2023 MST elapsed time: 43.670083 seconds (0d 0h 0m 43s)
--------------- T H R E A D ---------------
Current thread (0x000000014f808340): VMThread "VM Thread" [stack: 0x000000016e9e4000,0x000000016ebe7000] [id=14595]
Stack: [0x000000016e9e4000,0x000000016ebe7000], sp=0x000000016ebe6840, free space=2058k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x0000000000000c04
V [libjvm.dylib+0x828a44] _ZN22PathToGcRootsOperation4doitEv+0x1f4
V [libjvm.dylib+0xa5e7a4] _ZN12VM_Operation8evaluateEv+0xe0
V [libjvm.dylib+0xa62e40] _ZN8VMThread18evaluate_operationEP12VM_Operation+0xf4
V [libjvm.dylib+0xa63708] _ZN8VMThread13inner_executeEP12VM_Operation+0x218
V [libjvm.dylib+0xa62b04] _ZN8VMThread3runEv+0xd4
V [libjvm.dylib+0x9e5974] _ZN6Thread8call_runEv+0xe0
V [libjvm.dylib+0x7f5e20] _ZL19thread_native_entryP6Thread+0x158
C [libsystem_pthread.dylib+0x726c] _pthread_start+0x94