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