Explanation of the Thread-Local Handshakes
After researching JEP: 312 Thread-Local-Handshakes and reading the excellent comments to this question, here is a quick summary. It is a performance enhancement which cannot be used directly by developers: A handshake mechanism is proposed as an optimisation of the Hotspot safepoints mechanism. The former allows threads in a safepoint to continue executing immediately after … Read more