RFR: 8340297: Use-after-free recognition for metaspace and class space [v6]

Thomas Stuefe stuefe at openjdk.org
Tue Aug 26 06:21:36 UTC 2025


On Fri, 22 Aug 2025 10:55:12 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

>> Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   remove stray macro
>
> src/hotspot/share/oops/metadata.hpp line 50:
> 
>> 48: 
>> 49:   unsigned get_metadata_token() const { return _token; }
>> 50:   bool is_valid() const { return (get_metadata_token() & common_prefix) == common_prefix; }
> 
> This looks like you meant to use `common_prefix_mask` when extracting the bits out of the token.

Good catch. Thank you. Probably means I need to re-run all tests.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25891#discussion_r2299901349


More information about the hotspot-dev mailing list