You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ThreadLocal reuses a slot without clearing its old values #68
hx::thread::ThreadLocal (used by the Haxe 5 std Tls) recycles a slot id when its Tls is collected, but the values stored in that slot on each thread are never cleared. A new Tls that gets the recycled id reads the old owner's value, and that value stays alive until it is overwritten. The legacy __hxcpp_tls_* ids and ThreadLocal ids also both start at 0 and index the same per-thread array.
Activity
Keep ThreadLocal slots apart and drop values of recycled ones