Change "unexpected heap type" to a more generic version epsilon-gc-branch
authorshade
Tue, 05 Jun 2018 17:17:24 +0200
branchepsilon-gc-branch
changeset 56668 5cd17d3d3f83
parent 56667 d999bdb8173c
child 56669 b20a56352d78
Change "unexpected heap type" to a more generic version
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java
--- 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());
        }
     }