DescriptionRefactor lazy_instance to avoid a strict aliasing problem with gcc 4.4.
The key change here is to use the Type* returned from placement new rather
than casting the buffer to a Type*.
This change also rolls the lazy instance helper into lazy instance as the lazy
instance helper would have to have been templatized to deal with the aforementioned
change and so would have to have moved into the header file anyway.
BUG=28749
Patch Set 1 #Patch Set 2 : fix whitespace #Patch Set 3 : use condingstyle ordering of data members #Patch Set 4 : Remove extra MemoryBarrier #
Messages
Total messages: 15 (0 generated)
|