equal
deleted
inserted
replaced
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 |