8193193: AArch64: immByteMapBase operand generated for non-CardTable GCs
authorrkennke
Tue, 05 Dec 2017 10:43:23 +0000
changeset 48484 9ca19ebea22d
parent 48483 afb2284bb487
child 48485 258a4dab74a7
8193193: AArch64: immByteMapBase operand generated for non-CardTable GCs Reviewed-by: aph
src/hotspot/cpu/aarch64/aarch64.ad
--- a/src/hotspot/cpu/aarch64/aarch64.ad	Tue Dec 19 19:55:23 2017 -0800
+++ b/src/hotspot/cpu/aarch64/aarch64.ad	Tue Dec 05 10:43:23 2017 +0000
@@ -5844,8 +5844,8 @@
 operand immByteMapBase()
 %{
   // Get base of card map
-  predicate((jbyte*)n->get_ptr() ==
-        ((CardTableModRefBS*)(Universe::heap()->barrier_set()))->byte_map_base);
+  predicate(Universe::heap()->barrier_set()->is_a(BarrierSet::CardTableModRef) &&
+    (jbyte*)n->get_ptr() == ((CardTableModRefBS*)(Universe::heap()->barrier_set()))->byte_map_base);
   match(ConP);
 
   op_cost(0);