Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8284226

Debug agent does not allow debugging JVMCI java code executed during startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • tbd
    • 17, 18, 19
    • core-svc

      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.

            Unassigned Unassigned
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: