equal
deleted
inserted
replaced
295 |
295 |
296 HandshakeState::HandshakeState() : _operation(NULL), _semaphore(1), _thread_in_process_handshake(false) {} |
296 HandshakeState::HandshakeState() : _operation(NULL), _semaphore(1), _thread_in_process_handshake(false) {} |
297 |
297 |
298 void HandshakeState::set_operation(JavaThread* target, HandshakeOperation* op) { |
298 void HandshakeState::set_operation(JavaThread* target, HandshakeOperation* op) { |
299 _operation = op; |
299 _operation = op; |
300 SafepointMechanism::arm_local_poll(target); |
300 SafepointMechanism::arm_local_poll_release(target); |
301 } |
301 } |
302 |
302 |
303 void HandshakeState::clear_handshake(JavaThread* target) { |
303 void HandshakeState::clear_handshake(JavaThread* target) { |
304 _operation = NULL; |
304 _operation = NULL; |
305 SafepointMechanism::disarm_local_poll(target); |
305 SafepointMechanism::disarm_local_poll_release(target); |
306 } |
306 } |
307 |
307 |
308 void HandshakeState::process_self_inner(JavaThread* thread) { |
308 void HandshakeState::process_self_inner(JavaThread* thread) { |
309 assert(Thread::current() == thread, "should call from thread"); |
309 assert(Thread::current() == thread, "should call from thread"); |
310 |
310 |