-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
master
The style guide should discourage the use of non-local variables with static storage duration and non-trivial constructors or destructors. These are well known sources of various problems such as "initialization order fiascos".
https://en.cppreference.com/w/cpp/language/siof
The style guide should also discourage the use of non-local variables with static storage duration and non-constexpr initializers. It already discourages such for non-local variables with thread-local storage duration -JDK-8283469, JDK-8282721.
https://en.cppreference.com/w/cpp/language/siof
The style guide should also discourage the use of non-local variables with static storage duration and non-constexpr initializers. It already discourages such for non-local variables with thread-local storage duration -
- links to
-
Commit(master) openjdk/jdk/01d4b772
-
Review(master) openjdk/jdk/25812