RFR: 8358781: C2 fails with assert "bad profile data type" when TypeProfileCasts is disabled [v2]

Saranya Natarajan snatarajan at openjdk.org
Tue Aug 12 09:04:12 UTC 2025


On Thu, 7 Aug 2025 11:38:30 GMT, Manuel Hässig <mhaessig at openjdk.org> wrote:

>> Saranya Natarajan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   adding test
>
> Thank you for working on this, @sarannat! The fix seems reasonable to me since `GraphKit::maybe_cast_profiled_receiver` has a similar exception.
> 
> However, you are missing a regression test or a `noreg-*` label in JBS. However, in this case, I think a small regression test is warranted.

@mhaessig and @dafedafe : Thank you for the review. I have now added a test case. 
@dafedafe : I have tested -XX:-TypeProfileCasts with few examples.I want to highlight the example of the test in `/test/hotspot/jtreg/compiler/tiered/TypeProfileCasts.java`. When I ran this with -XX:-TypeProfileCasts option and TieredCompilation disabled, it did crash with the same error.

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

PR Comment: https://git.openjdk.org/jdk/pull/26640#issuecomment-3178400547


More information about the hotspot-compiler-dev mailing list