RFR: 8354954: Typed static memory for late initialization of static class members in Hotspot [v9]
Kim Barrett
kbarrett at openjdk.org
Tue Apr 29 12:06:51 UTC 2025
On Tue, 29 Apr 2025 08:21:21 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
>> src/hotspot/share/utilities/stableValue.hpp line 61:
>>
>>> 59:
>>> 60: T& operator*() {
>>> 61: return *get();
>>
>> Why not just `return _t;`?
>
> To get the initialization assert.
Doh! Of course!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24689#discussion_r2066175585
More information about the hotspot-dev
mailing list