@@ -44,11 +44,11 @@ } #endif // AARCH64 } void JavaThread::cache_global_variables() { - BarrierSet* bs = Universe::heap()->barrier_set(); + BarrierSet* bs = BarrierSet::barrier_set(); const bool allow_shared_alloc = Universe::heap()->supports_inline_contig_alloc(); if (allow_shared_alloc) {