Skip to content

Commit 7f9951a

Browse files
author
Kim Barrett
committed
8373207: Make DeferredStatic class template constant initializable
Reviewed-by: jsjolen, stefank, iwalulya
1 parent 1ae4a6c commit 7f9951a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/utilities/deferredStatic.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
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 {
5353
public:
5454
NONCOPYABLE(DeferredStatic);
5555

56-
DeferredStatic()
56+
constexpr DeferredStatic()
5757
DEBUG_ONLY(: _initialized(false)) {
5858
// Do not construct value, on purpose.
5959
}

0 commit comments

Comments
 (0)