src/hotspot/share/runtime/handshake.cpp
changeset 59247 56bf71d64d51
parent 57699 4aea554692aa
child 59273 9170826a3d76
equal deleted inserted replaced
59246:fcad92f425c5 59247:56bf71d64d51
   292 
   292 
   293   ThreadInVMForHandshake tivm(thread);
   293   ThreadInVMForHandshake tivm(thread);
   294   if (!_semaphore.trywait()) {
   294   if (!_semaphore.trywait()) {
   295     _semaphore.wait_with_safepoint_check(thread);
   295     _semaphore.wait_with_safepoint_check(thread);
   296   }
   296   }
   297   HandshakeOperation* op = OrderAccess::load_acquire(&_operation);
   297   HandshakeOperation* op = Atomic::load_acquire(&_operation);
   298   if (op != NULL) {
   298   if (op != NULL) {
   299     HandleMark hm(thread);
   299     HandleMark hm(thread);
   300     CautiouslyPreserveExceptionMark pem(thread);
   300     CautiouslyPreserveExceptionMark pem(thread);
   301     // Disarm before execute the operation
   301     // Disarm before execute the operation
   302     clear_handshake(thread);
   302     clear_handshake(thread);