The constructor for DeferredStatic should be constexpr. This will ensure the initialization will be constant initialization, not dynamic initialization. (See C++17 6.6.2.) While it's likely a compiler would reduce the dynamic initialization to constant initialization, making the constructor constexpr guarantees constant initialization.
- links to
-
Commit(master)
openjdk/jdk/7f9951a9
-
Review(master)
openjdk/jdk/28710