8193193: AArch64: immByteMapBase operand generated for non-CardTable GCs

Reviewed-by: aph
This commit is contained in:
Roman Kennke 2017-12-05 10:43:23 +00:00
parent 1f15d2bb46
commit 91a2daa9a2

View File

@ -5844,8 +5844,8 @@ operand immPollPage()
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);