RFR: 8354428: [ubsan] g1BiasedArray.hpp: pointer overflow in address calculation [v2]

Thomas Schatzl tschatzl at openjdk.org
Tue May 27 09:10:31 UTC 2025


On Tue, 27 May 2025 08:21:58 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> Thomas Schatzl has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   * change size_t to uintptr_t in vmstructs
>
> src/hotspot/share/gc/g1/vmStructs_g1.hpp line 51:
> 
>> 49:   nonstatic_field(G1HeapRegionTable, _base,             address)              \
>> 50:   nonstatic_field(G1HeapRegionTable, _length,           size_t)               \
>> 51:   nonstatic_field(G1HeapRegionTable, _biased_base,      size_t)               \
> 
> Why `size_t` for `uintptr_t _biased_base;`?

Fixed. Apparently `uintptr_t` is already in the SA database...

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25447#discussion_r2108655876


More information about the hotspot-gc-dev mailing list