RFR: JDK-8295406: C1 crash with -XX:TypeProfileArgsLimit=0 -XX:TypeProfileLevel=222
Damon Fenacci
duke at openjdk.org
Fri Jan 6 07:26:59 UTC 2023
On Fri, 6 Jan 2023 06:33:05 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:
>> `-XX:TypeProfileArgsLimit=0 -XX:TypeProfileLevel=222` cause an assert to fail in `LIRGenerator::profile_arguments`.
>>
>> `LIRGenerator::profile_arguments` actually checks if arguments need to be profiled but the `MethodData::profile_arguments` method doesn't take `TypeProfileArgsLimit=0` into account.
>>
>> Adding a check for _TypeProfileArgsLimit>0_ to determine if arguments have to be profiled.
>
> Looks good to me!
@TobiHartmann thanks a lot for reviewing it.
-------------
PR: https://git.openjdk.org/jdk/pull/11843
More information about the hotspot-dev
mailing list