File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/hotspot/share/utilities Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3535// object must be explicitly initialized before use. This avoids problems
3636// resulting from the unspecified initialization time and ordering between
3737// different objects that comes from using undeferred objects (the so-called
38- // "Static Initialization Order Fiasco).
38+ // "Static Initialization Order Fiasco" ).
3939//
4040// Once initialized, the object is never destroyed. This avoids similar issues
4141// with the timing and ordering of destruction on normal program exit.
@@ -53,7 +53,7 @@ class DeferredStatic {
5353public:
5454 NONCOPYABLE (DeferredStatic);
5555
56- DeferredStatic ()
56+ constexpr DeferredStatic ()
5757 DEBUG_ONLY(: _initialized(false )) {
5858 // Do not construct value, on purpose.
5959 }
You can’t perform that action at this time.
0 commit comments