--- a/src/hotspot/share/gc/shared/collectedHeap.cpp Thu Apr 12 11:05:42 2018 +0200
+++ b/src/hotspot/share/gc/shared/collectedHeap.cpp Thu Apr 12 11:22:24 2018 +0200
@@ -137,7 +137,7 @@
print_extended_on(st);
st->cr();
- _barrier_set->print_on(st);
+ BarrierSet::barrier_set()->print_on(st);
}
void CollectedHeap::trace_heap(GCWhen::Type when, const GCTracer* gc_tracer) {
@@ -176,7 +176,6 @@
CollectedHeap::CollectedHeap() :
- _barrier_set(NULL),
_is_gc_active(false),
_total_collections(0),
_total_full_collections(0),
@@ -311,11 +310,6 @@
} while (true); // Until a GC is done
}
-void CollectedHeap::set_barrier_set(BarrierSet* barrier_set) {
- _barrier_set = barrier_set;
- BarrierSet::set_barrier_set(barrier_set);
-}
-
#ifndef PRODUCT
void CollectedHeap::check_for_bad_heap_word_value(HeapWord* addr, size_t size) {
if (CheckMemoryInitialization && ZapUnusedHeapArea) {
@@ -522,7 +516,7 @@
assert(!use_tlab || jtiwh.length() > 0,
"Attempt to fill tlabs before main thread has been added"
" to threads list is doomed to failure!");
- BarrierSet *bs = barrier_set();
+ BarrierSet *bs = BarrierSet::barrier_set();
for (; JavaThread *thread = jtiwh.next(); ) {
if (use_tlab) thread->tlab().make_parsable(retire_tlabs);
bs->make_parsable(thread);