This race condition was found when calling Thread#join with a timeout
inside a ractor. The race is between the polling thread waking up the
thread and the ubf getting called (ubf_event_waiting). The error was
that the ubf or polling thread would set the thread as ready, but then
the other function would do the same.
Fix
thread_sched_wait_eventsrace (#15067)This race condition was found when calling
Thread#joinwith a timeoutinside a ractor. The race is between the polling thread waking up the
thread and the
ubfgetting called (ubf_event_waiting). The error wasthat the ubf or polling thread would set the thread as ready, but then
the other function would do the same.
Fixes [Bug #21614]