< prev index next >

src/hotspot/cpu/aarch64/aarch64.ad

Print this page
rev 47917 : [mq]: aarch64-ctmrbs.patch

@@ -5890,12 +5890,12 @@
 
 // Card Table Byte Map Base
 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);
   format %{ %}
   interface(CONST_INTER);
< prev index next >