RFR: 8354954: Typed static memory for late initialization of static class members in Hotspot [v9]

Johan Sjölen jsjolen at openjdk.org
Tue Apr 29 08:25:54 UTC 2025


On Mon, 28 Apr 2025 17:30:57 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> Johan Sjölen has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   More documentation, rename ptr to get
>
> 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.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24689#discussion_r2065771104


More information about the hotspot-dev mailing list