src/hotspot/share/gc/shared/memAllocator.cpp
changeset 57745 789e967c2731
parent 57602 dbe471d2f8f8
child 57777 90ead0febf56
equal deleted inserted replaced
57739:6717d7e59db4 57745:789e967c2731
   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