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

Nick Gasson ngasson at openjdk.org
Tue Jan 10 13:32:59 UTC 2023


On Fri, 6 Jan 2023 14:46:36 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

This pull request has now been integrated.

Changeset: 21d468e5
Author:    Nick Gasson <ngasson at openjdk.org>
URL:       https://git.openjdk.org/jdk20/commit/21d468e5751b082edc8db919e378fbb1cc6dc9ad
Stats:     18 lines in 2 files changed: 13 ins; 2 del; 3 mod

8299733: AArch64: "unexpected literal addressing mode" assertion failure with -XX:+PrintC1Statistics

Co-authored-by: Ningsheng Jian <njian at openjdk.org>
Reviewed-by: chagedorn, fyang, aph

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

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


More information about the hotspot-compiler-dev mailing list