On Fri, 5 May 2023 21:21:28 GMT, Paul Hohensee <p...@openjdk.org> wrote:

> Afaiu, SMR/TLH keeps a terminated thread's TLS accessible, but doesn't stop 
> the termination process.

Incorrect. A thread cannot complete the termination process if it is contained 
by a TLH - see ` ThreadsSMRSupport::smr_delete` and the call to 
`wait_until_not_protected`.

But not sure that helps with the zero-else-double accounting problem. Any read 
of the "total accumulated bytes written to date" value is racing with 
terminating threads.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13814#discussion_r1186966520

Reply via email to