--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/HSDB.java 2018-06-08 19:45:38.397907178 +0200 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/HSDB.java 2018-06-08 19:45:38.126895420 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -36,6 +36,7 @@ import sun.jvm.hotspot.gc.parallel.*; import sun.jvm.hotspot.gc.shared.*; import sun.jvm.hotspot.gc.g1.*; +import sun.jvm.hotspot.gc.z.*; import sun.jvm.hotspot.interpreter.*; import sun.jvm.hotspot.memory.*; import sun.jvm.hotspot.oops.*; @@ -1108,6 +1109,10 @@ anno = "PSOldGen "; bad = false; } + } else if (collHeap instanceof ZCollectedHeap) { + ZCollectedHeap heap = (ZCollectedHeap) collHeap; + anno = "ZHeap "; + bad = false; } else { // Optimistically assume the oop isn't bad anno = "[Unknown generation] ";