equal
deleted
inserted
replaced
98 friend class JVMCIVMStructs; |
98 friend class JVMCIVMStructs; |
99 friend class IsGCActiveMark; // Block structured external access to _is_gc_active |
99 friend class IsGCActiveMark; // Block structured external access to _is_gc_active |
100 friend class MemAllocator; |
100 friend class MemAllocator; |
101 |
101 |
102 private: |
102 private: |
103 #ifdef ASSERT |
|
104 static int _fire_out_of_memory_count; |
|
105 #endif |
|
106 |
|
107 GCHeapLog* _gc_heap_log; |
103 GCHeapLog* _gc_heap_log; |
108 |
104 |
109 MemRegion _reserved; |
105 MemRegion _reserved; |
110 |
106 |
111 protected: |
107 protected: |
598 // Reset the PromotionFailureALot counters. Should be called at the end of a |
594 // Reset the PromotionFailureALot counters. Should be called at the end of a |
599 // GC in which promotion failure occurred. |
595 // GC in which promotion failure occurred. |
600 void reset_promotion_should_fail(volatile size_t* count); |
596 void reset_promotion_should_fail(volatile size_t* count); |
601 void reset_promotion_should_fail(); |
597 void reset_promotion_should_fail(); |
602 #endif // #ifndef PRODUCT |
598 #endif // #ifndef PRODUCT |
603 |
|
604 #ifdef ASSERT |
|
605 static int fired_fake_oom() { |
|
606 return (CIFireOOMAt > 1 && _fire_out_of_memory_count >= CIFireOOMAt); |
|
607 } |
|
608 #endif |
|
609 }; |
599 }; |
610 |
600 |
611 // Class to set and reset the GC cause for a CollectedHeap. |
601 // Class to set and reset the GC cause for a CollectedHeap. |
612 |
602 |
613 class GCCauseSetter : StackObj { |
603 class GCCauseSetter : StackObj { |