RFR: 8267213: assert(left >= right) failed: avoid underflow [v2]
Albert Mingkun Yang
ayang at openjdk.java.net
Mon May 17 09:24:39 UTC 2021
On Mon, 17 May 2021 07:52:14 GMT, Jie Fu <jiefu at openjdk.org> wrote:
>> Hi all,
>>
>> This is a follow-up of JDK-8260046.
>> And it can be reproduced by `java -XX:UnguardOnExecutionViolation=1` on x86_32.
>> Let's fix it
>>
>> Thanks.
>> Best regards,
>> Jie
>
> Jie Fu has updated the pull request incrementally with one additional commit since the last revision:
>
> Set false if addr < pc
How about removing the `if`?
bool pc_is_near_addr = (addr >= pc) &&
pointer_delta((void*) addr, (void*) pc, sizeof(char)) < 15;
-------------
PR: https://git.openjdk.java.net/jdk/pull/4044
More information about the hotspot-dev
mailing list