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

jmap -clstats fails to work after JDK-8232759

    Details

    • Subcomponent:
    • Resolved In Build:
      b06

      Description

      sun/tools/jmap/BasicJMapTest.java fails after JDK-8232759 due to the removal of GC.class_stats in the VM.
      jmap -clstats doesn't work any more.

      ```
      [2020-01-11T03:03:59.930482Z] Waiting for completion for process 37563
      [2020-01-11T03:03:59.930565Z] Waiting for completion finished for process 37563
      [/Users/fool/workspace/open/jdk/build/macosx-x86_64-server-release/images/jdk/bin/jmap, -clstats, 37553]
      [2020-01-11T03:03:59.933976Z] Gathering output for process 37564
      Exception in thread "main" com.sun.tools.attach.AttachOperationFailedException: java.lang.IllegalArgumentException: Unknown diagnostic command
              at jdk.attach/sun.tools.attach.VirtualMachineImpl.execute(VirtualMachineImpl.java:223)
              at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:309)
              at jdk.jcmd/sun.tools.jmap.JMap.executeCommandForPid(JMap.java:133)
              at jdk.jcmd/sun.tools.jmap.JMap.main(JMap.java:118)

      [2020-01-11T03:04:00.037617Z] Waiting for completion for process 37564
      [2020-01-11T03:04:00.037699Z] Waiting for completion finished for process 37564
      [2020-01-11T03:04:00.037746Z] Waiting for completion for process 37564
      [2020-01-11T03:04:00.037777Z] Waiting for completion finished for process 37564
      STDERR:
       stdout: [];
       stderr: [Exception in thread "main" com.sun.tools.attach.AttachOperationFailedException: java.lang.IllegalArgumentException: Unknown diagnostic command
              at jdk.attach/sun.tools.attach.VirtualMachineImpl.execute(VirtualMachineImpl.java:223)
              at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:309)
              at jdk.jcmd/sun.tools.jmap.JMap.executeCommandForPid(JMap.java:133)
              at jdk.jcmd/sun.tools.jmap.JMap.main(JMap.java:118)
      ]
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0]

              at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:455)
              at BasicJMapTest.testClstats(BasicJMapTest.java:127)
              at BasicJMapTest.main(BasicJMapTest.java:58)
              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:564)
              at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
              at java.base/java.lang.Thread.run(Thread.java:832)
      ```

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                coleenp Coleen Phillimore
                Reporter:
                jiefu Jie Fu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: