On Fri, 19 Jun 2026 06:54:40 GMT, Julian Waters <[email protected]> wrote:

>> src/hotspot/share/oops/metadata.hpp line 40:
>> 
>>> 38:   // for serviceability tests to work.
>>> 39:   // This can be done by linker settings or modifications to the 
>>> Metadata class.
>>> 40: 
>> 
>> Sorry I haven't been keeping up with this thread. I believe I ask about 
>> PRODUCT builds before. How does all this work with PRODUCT builds since 
>> there is no is_valid() method forcing there to be a Metadata vtable? Can you 
>> also expand the comment a bit to explain why we need both is_valid() and the 
>> linker option?
>
> Alright, I'm fine with it if @plummercj has no further queries, but to answer 
> the question I think only the linker flag is set for now, the comment is just 
> there to explain the situation.

Yes true, only the linker flag is set.
And we do the same for LTGC for some time already because there the same issue 
was observed  
https://github.com/openjdk/jdk/blob/2d005ac20dbc27189f212343e11e92246c320c86/make/autoconf/flags-ldflags.m4#L61

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30771#discussion_r3440774966

Reply via email to