On Wed, Jan 10, 2018 at 3:58 PM, Paul Sandoz <[email protected]> wrote:
> > The code is skating close to the edge and is definitely making you > uncomfortable :-) so I proposed making the field non-final but annotated > with @Stable, the same optimisations should still apply. > Sorry, @Stable doesn't increase my comfort. It is common for unsafe publication bugs to persist for years because they don't manifest as user-visible behavior very often. Like https://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
