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
`-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.
-------------
Commit messages:
- JDK-8295406: copyright year update
- JDK-8295406: added regression test
- JDK-8295406: C1 crash with -XX:TypeProfileArgsLimit=0 -XX:TypeProfileLevel=222
Changes: https://git.openjdk.org/jdk/pull/11843/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11843&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8295406
Stats: 46 lines in 2 files changed: 44 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/11843.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11843/head:pull/11843
PR: https://git.openjdk.org/jdk/pull/11843
More information about the hotspot-dev
mailing list