src/hotspot/share/gc/shared/memAllocator.cpp
changeset 57501 a297f7ab46c3
parent 55734 51f5b4c29626
child 57602 dbe471d2f8f8
equal deleted inserted replaced
57500:ab6867688e7a 57501:a297f7ab46c3
   171   // OutOfMemoryError?  Don't allow pending exceptions.
   171   // OutOfMemoryError?  Don't allow pending exceptions.
   172   // This is a VM policy failure, so how do we exhaustively test it?
   172   // This is a VM policy failure, so how do we exhaustively test it?
   173   assert(!_thread->has_pending_exception(),
   173   assert(!_thread->has_pending_exception(),
   174          "shouldn't be allocating with pending exception");
   174          "shouldn't be allocating with pending exception");
   175   if (StrictSafepointChecks) {
   175   if (StrictSafepointChecks) {
   176     assert(_thread->allow_allocation(),
       
   177            "Allocation done by thread for which allocation is blocked "
       
   178            "by No_Allocation_Verifier!");
       
   179     // Allocation of an oop can always invoke a safepoint,
   176     // Allocation of an oop can always invoke a safepoint,
   180     // hence, the true argument
   177     // hence, the true argument.
   181     _thread->check_for_valid_safepoint_state(true);
   178     _thread->check_for_valid_safepoint_state(true);
   182   }
   179   }
   183 }
   180 }
   184 #endif
   181 #endif
   185 
   182