--- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java Tue Jun 05 17:17:19 2018 +0200
+++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java Tue Jun 05 17:17:24 2018 +0200
@@ -445,9 +445,7 @@
liveRegions.add(eh.space().bottom());
} else {
if (Assert.ASSERTS_ENABLED) {
- Assert.that(false, "Expecting GenCollectedHeap, G1CollectedHeap, " +
- "or ParallelScavengeHeap, but got " +
- heap.getClass().getName());
+ Assert.that(false, "Unexpected CollectedHeap type: " + heap.getClass().getName());
}
}