Comment by cowlevel
16 hours ago
That's a data race. The caller gets the reference after the constructor runs, but writes to non-final fields from the constructor might not be visible to other threads.
16 hours ago
That's a data race. The caller gets the reference after the constructor runs, but writes to non-final fields from the constructor might not be visible to other threads.
No comments yet
Contribute on Hacker News ↗