src/hotspot/share/gc/g1/g1CollectedHeap.cpp
changeset 49628 88478047bc8f
parent 49607 acffe6ff3ae7
child 49632 64f9ebc85e67
--- a/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Wed Mar 28 11:27:35 2018 +0200
+++ b/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Wed Mar 28 11:38:47 2018 +0200
@@ -2486,7 +2486,7 @@
 G1CollectedHeap* G1CollectedHeap::heap() {
   CollectedHeap* heap = Universe::heap();
   assert(heap != NULL, "Uninitialized access to G1CollectedHeap::heap()");
-  assert(heap->kind() == CollectedHeap::G1CollectedHeap, "Not a G1CollectedHeap");
+  assert(heap->kind() == CollectedHeap::G1, "Invalid name");
   return (G1CollectedHeap*)heap;
 }