1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.cpp Thu Mar 27 17:22:06 2008 -0700 1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/vmPSOperations.cpp Tue Apr 01 15:13:47 2008 +0400 1.3 @@ -69,6 +69,9 @@ 1.4 1.5 GCCauseSetter gccs(heap, _gc_cause); 1.6 _result = heap->failed_permanent_mem_allocate(_size); 1.7 + if (_result == NULL && GC_locker::is_active_and_needs_gc()) { 1.8 + set_gc_locked(); 1.9 + } 1.10 notify_gc_end(); 1.11 } 1.12