equal
deleted
inserted
replaced
141 |
141 |
142 void MemAllocator::Allocation::verify_before() { |
142 void MemAllocator::Allocation::verify_before() { |
143 // Clear unhandled oops for memory allocation. Memory allocation might |
143 // Clear unhandled oops for memory allocation. Memory allocation might |
144 // not take out a lock if from tlab, so clear here. |
144 // not take out a lock if from tlab, so clear here. |
145 Thread* THREAD = _thread; |
145 Thread* THREAD = _thread; |
146 CHECK_UNHANDLED_OOPS_ONLY(THREAD->clear_unhandled_oops();) |
|
147 assert(!HAS_PENDING_EXCEPTION, "Should not allocate with exception pending"); |
146 assert(!HAS_PENDING_EXCEPTION, "Should not allocate with exception pending"); |
148 debug_only(check_for_valid_allocation_state()); |
147 debug_only(check_for_valid_allocation_state()); |
149 assert(!Universe::heap()->is_gc_active(), "Allocation during gc not allowed"); |
148 assert(!Universe::heap()->is_gc_active(), "Allocation during gc not allowed"); |
150 } |
149 } |
151 |
150 |