RFR: JDK-8295406: C1 crash with -XX:TypeProfileArgsLimit=0 -XX:TypeProfileLevel=222
Damon Fenacci
duke at openjdk.org
Fri Jan 6 07:26:58 UTC 2023
On Wed, 4 Jan 2023 13:41:36 GMT, Damon Fenacci <duke 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.
@rwestrel thanks a lot for your hint!
Added `TestTypeProfileArgsLimit` regression test that checks for `TypeProfileArgsLimit=0` and `TypeProfileLevel=222` plus a few other combinations of `TypeProfileArgsLimit`, `TypeProfileLevel` and `TypeProfileParmsLimit`.
-------------
PR: https://git.openjdk.org/jdk/pull/11843
More information about the hotspot-dev
mailing list