RFR: 8286876: NMT.test_unaliged_block_address_vm_assert fails if using clang toolchain [v2]

Thomas Stuefe stuefe at openjdk.org
Tue Dec 6 11:46:09 UTC 2022


On Tue, 6 Dec 2022 11:05:32 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

>> Johan Sjölen has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Generate assert_block_integrity thru templated function
>
> src/hotspot/share/services/mallocHeader.inline.hpp line 112:
> 
>> 110: inline const MallocHeader* MallocHeader::assert_block_integrity(const void* memblock) {
>> 111:   return MallocHeader::assert_block_integrity_internal<const void*, const MallocHeader*>(memblock);
>> 112: }
> 
> I usually just const_cast to implement one in terms of the other.

p.s. this was just an observation. Doing it via templates is fine.

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

PR: https://git.openjdk.org/jdk/pull/11465


More information about the hotspot-runtime-dev mailing list