[crac] RFR: Wake up all TIMED_WAITING threads after restore
Radim Vansa
rvansa at openjdk.org
Tue Jun 20 06:51:39 UTC 2023
On Mon, 19 Jun 2023 15:52:59 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:
> Probably pthread_cond_timedwait() ? Should not be other *_timedwait be handled, like sem_timedwait()?
Right, sorry for those typos. `sem_timedwait` is fine since it uses wall-clock time, while we're concerned about monotonic time shifts.
> I assume this happens in the implementation of pthread_cond_timedwait and not the JVM caller function? Otherwise I can't see the code doing the recalculation.
No, I remember that happened somewhere higher up in JVM (I have to insert some debug logs to see that), will check it out again.
-------------
PR Comment: https://git.openjdk.org/crac/pull/85#issuecomment-1598207941
More information about the crac-dev
mailing list