[jdk20] RFR: 8299733: AArch64: "unexpected literal addressing mode" assertion failure with -XX:+PrintC1Statistics [v3]

Fei Yang fyang at openjdk.org
Tue Jan 10 10:41:01 UTC 2023


On Mon, 9 Jan 2023 14:02:11 GMT, Nick Gasson <ngasson at openjdk.org> wrote:

>> `MacroAssembler::incrementw()` asserts that
>> 
>> 
>> assert(!dst.uses(rscratch1), "invalid dst for address increment");
>> 
>> 
>> But `Address::uses()` can only be called on non-literal addresses.  We could change this assert to check `dst.getMode()` first but it seems cleaner to make `Address::uses()` handle the non-literal case.
>> 
>> This failure is trivial to reproduce with:
>> 
>> 
>> $ java -XX:+PrintC1Statistics -XX:+UseZGC --version
>
> Nick Gasson has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Enumerate all possible values of _mode

Marked as reviewed by fyang (Reviewer).

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

PR: https://git.openjdk.org/jdk20/pull/87


More information about the hotspot-compiler-dev mailing list