8214271: Fast primitive to wake many threads

Andrew Haley aph at redhat.com
Sat Nov 24 11:12:43 UTC 2018


On 11/23/18 4:51 PM, Robbin Ehn wrote:
> Webrev:
> http://cr.openjdk.java.net/~rehn/8214271/webrev/

The code is rather lightly commented. In particular, it's not
clear that a wait() might return spuriously from a futex and how
you deal with that. Is it the case that users of this API are to be
exposed to spurious wakeups? If so, you must say so in the comments.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the hotspot-dev mailing list