src/share/vm/gc_implementation/shared/vmGCOperations.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/gc_implementation/shared/vmGCOperations.cpp

src/share/vm/gc_implementation/shared/vmGCOperations.cpp

Print this page
rev 5732 : [mq]: comments2

*** 80,90 **** InstanceRefKlass::release_and_notify_pending_list_lock(&_pending_list_basic_lock); } // Allocations may fail in several threads at about the same time, // resulting in multiple gc requests. We only want to do one of them. ! // In case a GC locker is active and the need for a GC is already signalled, // we want to skip this GC attempt altogether, without doing a futile // safepoint operation. bool VM_GC_Operation::skip_operation() const { bool skip = (_gc_count_before != Universe::heap()->total_collections()); if (_full && skip) { --- 80,90 ---- InstanceRefKlass::release_and_notify_pending_list_lock(&_pending_list_basic_lock); } // Allocations may fail in several threads at about the same time, // resulting in multiple gc requests. We only want to do one of them. ! // In case a GC locker is active and the need for a GC is already signaled, // we want to skip this GC attempt altogether, without doing a futile // safepoint operation. bool VM_GC_Operation::skip_operation() const { bool skip = (_gc_count_before != Universe::heap()->total_collections()); if (_full && skip) {
src/share/vm/gc_implementation/shared/vmGCOperations.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File