RFR: 8354954: Typed static memory for late initialization of static class members in Hotspot [v7]
Kim Barrett
kbarrett at openjdk.org
Tue Apr 22 15:58:54 UTC 2025
On Tue, 22 Apr 2025 15:33:58 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:
>>
>> Use the pointer, of course
>
> src/hotspot/share/utilities/stableValue.hpp line 55:
>
>> 53: T* operator->() {
>> 54: assert(_initialized, "must be initialized before access");
>> 55: return ptr();
>
> Just call `ptr()`, which does the assert.
I think this class should also provide `operator*()`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24689#discussion_r2054375241
More information about the hotspot-dev
mailing list