On Thu, 28 May 2026 11:57:35 GMT, Coleen Phillimore <[email protected]> wrote:
>> src/hotspot/share/oops/instanceKlass.cpp line 575:
>>
>>> 573:
>>> 574: #ifdef ASSERT
>>> 575: void InstanceKlass::assert_bounds_check(address addr, bool edge_ok,
>>> intptr_t size_in_bytes) const {
>>
>> 1) This function is broken w.r.t. bytes vs words in the "just after" check.
>> 2) The "before" checks is turned off for the checks of "start_" values. That
>> seems inconsistent and also makes me wonder if the before check really is
>> helping here.
>>
>> I would vote for nuking this function from JEP-401, but as a separate RFE.
>
> I haven't yet figured out why this was added. I'd like to remove it too.
removed.
-------------
PR Review Comment:
https://git.openjdk.org/valhalla/pull/2479#discussion_r3317602473