< prev index next >
src/share/vm/gc_implementation/shared/vmGCOperations.cpp
Print this page
rev 7781 : imported patch 8066771
rev 7782 : [mq]: review
*** 177,190 ****
void VM_GenCollectForAllocation::doit() {
SvcGCMarker sgcm(SvcGCMarker::MINOR);
GenCollectedHeap* gch = GenCollectedHeap::heap();
GCCauseSetter gccs(gch, _gc_cause);
! _res = gch->satisfy_failed_allocation(_size, _tlab);
! assert(gch->is_in_reserved_or_null(_res), "result not in heap");
! if (_res == NULL && GC_locker::is_active_and_needs_gc()) {
set_gc_locked();
}
}
void VM_GenCollectFull::doit() {
--- 177,190 ----
void VM_GenCollectForAllocation::doit() {
SvcGCMarker sgcm(SvcGCMarker::MINOR);
GenCollectedHeap* gch = GenCollectedHeap::heap();
GCCauseSetter gccs(gch, _gc_cause);
! _result = gch->satisfy_failed_allocation(_word_size, _tlab);
! assert(gch->is_in_reserved_or_null(_result), "result not in heap");
! if (_result == NULL && GC_locker::is_active_and_needs_gc()) {
set_gc_locked();
}
}
void VM_GenCollectFull::doit() {
< prev index next >