I'm trying to debug some JVMCI startup code as follows:
java -server -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=y -XX:+UseJVMCICompiler -XX:+EagerJVMCI -XX:+JVMCIPrintProperties --version
However, the VM process runs to completion without suspending. That means I have no chance to attach a debugger to port 8000 which, in turn, means a breakpoint set in jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.<init> is never hit.
java -server -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=y -XX:+UseJVMCICompiler -XX:+EagerJVMCI -XX:+JVMCIPrintProperties --version
However, the VM process runs to completion without suspending. That means I have no chance to attach a debugger to port 8000 which, in turn, means a breakpoint set in jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.<init> is never hit.