Re:What if null was an Object in Java?
by charleslmunger on Monday April 29, 2024 @11:36PM
(#40206970)
At least on android arm64, looks like a `dmb ishst` is emitted after the constructor, which allows future loads to not need an explicit barrier. Removing `final` from the field causes that barrier to not be emitted.
https://godbolt.org/#g:!((g:!((g:!((h:codeEditor,i:(filename...