RFR: 8328822: C2: "negative trip count?" assert failure in profile predicate code

Roland Westrelin roland at openjdk.org
Thu Apr 11 07:29:51 UTC 2024


On Wed, 10 Apr 2024 08:48:19 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> The assert failure is caused by:
>> 
>> ABS(min_jint) = min_jint
>> 
>> 
>> Given the `ABS` is part of a floating computation, the fix I propose
>> is to cast the value to float before the `ABS`.
>
> Looks good and simple enough to me.

@shipilev @chhagedorn thanks for the reviews

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

PR Comment: https://git.openjdk.org/jdk/pull/18707#issuecomment-2049086855


More information about the hotspot-compiler-dev mailing list