--- a/src/hotspot/cpu/arm/interp_masm_arm.cpp Thu Apr 12 11:05:42 2018 +0200
+++ b/src/hotspot/cpu/arm/interp_masm_arm.cpp Thu Apr 12 11:22:24 2018 +0200
@@ -410,7 +410,7 @@
// Sets card_table_base register.
void InterpreterMacroAssembler::store_check_part1(Register card_table_base) {
// Check barrier set type (should be card table) and element size
- BarrierSet* bs = Universe::heap()->barrier_set();
+ BarrierSet* bs = BarrierSet::barrier_set();
assert(bs->kind() == BarrierSet::CardTableBarrierSet,
"Wrong barrier set kind");
@@ -477,7 +477,7 @@
#ifdef AARCH64
strb(ZR, card_table_addr);
#else
- CardTableBarrierSet* ctbs = barrier_set_cast<CardTableBarrierSet>(Universe::heap()->barrier_set());
+ CardTableBarrierSet* ctbs = barrier_set_cast<CardTableBarrierSet>(BarrierSet::barrier_set());
CardTable* ct = ctbs->card_table();
if ((((uintptr_t)ct->byte_map_base() & 0xff) == 0)) {
// Card table is aligned so the lowest byte of the table address base is zero.