JDK-8209163 : SA: Show Object Histogram asserts with ZGC
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2018-08-08
  • Updated: 2018-09-19
  • Resolved: 2018-09-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12
12 b12Fixed
Related Reports
Relates :  
Relates :  
Description
The HSDB Show Object Histogram command asserts when using ZGC.  It should report that ZGC is unsupported.

How to reproduce:

  1. Run debuggee with -XX:+UnlockExperimentalVMOptions -XX:+UseZGC

  2. Attach HSDB to the debuggee
    $ jhsdb hsdb --pid <PID>

  3. Show Object Histogram
    [Tools] -> [Object Histogram]


Exception on HSDB console:

```
sun.jvm.hotspot.utilities.AssertionFailure: Unexpected CollectedHeap type: sun.jvm.hotspot.gc.z.ZCollectedHeap
at jdk.hotspot.agent/sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
at jdk.hotspot.agent/sun.jvm.hotspot.oops.ObjectHeap.collectLiveRegions(ObjectHeap.java:448)
at jdk.hotspot.agent/sun.jvm.hotspot.oops.ObjectHeap.iterate(ObjectHeap.java:173)
at jdk.hotspot.agent/sun.jvm.hotspot.HSDB$VisitHeap.run(HSDB.java:1741)
at jdk.hotspot.agent/sun.jvm.hotspot.utilities.WorkerThread$MainLoop.run(WorkerThread.java:70)
at java.base/java.lang.Thread.run(Thread.java:832)
``` 

Comments
This CR is only about how the missing feature is reported. JDK-8207843 is about the feature not being supported.
08-08-2018