Make DeferredStatic class template constant initializable

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 27
    • Affects Version/s: None
    • Component/s: hotspot
    • b02

      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.

            Assignee:
            Kim Barrett
            Reporter:
            Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: