< prev index next >
src/share/vm/gc/shared/isGCActiveMark.hpp
Print this page
rev 11777 : [mq]: gcinterface.patch
*** 34,50 ****
// _is_gc_active state without requiring accessors in CollectedHeap
class IsGCActiveMark : public StackObj {
public:
IsGCActiveMark() {
! CollectedHeap* heap = Universe::heap();
assert(!heap->is_gc_active(), "Not reentrant");
heap->_is_gc_active = true;
}
~IsGCActiveMark() {
! CollectedHeap* heap = Universe::heap();
assert(heap->is_gc_active(), "Sanity");
heap->_is_gc_active = false;
}
};
--- 34,50 ----
// _is_gc_active state without requiring accessors in CollectedHeap
class IsGCActiveMark : public StackObj {
public:
IsGCActiveMark() {
! CollectedHeap* heap = GC::gc()->heap();
assert(!heap->is_gc_active(), "Not reentrant");
heap->_is_gc_active = true;
}
~IsGCActiveMark() {
! CollectedHeap* heap = GC::gc()->heap();
assert(heap->is_gc_active(), "Sanity");
heap->_is_gc_active = false;
}
};
< prev index next >