changeset 48485:9ca19ebea22d

8193193: AArch64: immByteMapBase operand generated for non-CardTable GCs Reviewed-by: aph
author rkennke
date Tue, 05 Dec 2017 10:43:23 +0000
parents afb2284bb487
children 258a4dab74a7
files src/hotspot/cpu/aarch64/aarch64.ad
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);