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

Nick Gasson ngasson at openjdk.org
Fri Jan 6 17:25:05 UTC 2023


> `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:

  Remove TestPrintC1Statistics from ProblemList-Xcomp

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

Changes:
  - all: https://git.openjdk.org/jdk20/pull/87/files
  - new: https://git.openjdk.org/jdk20/pull/87/files/b319405a..209be8bb

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk20&pr=87&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk20&pr=87&range=00-01

  Stats: 3 lines in 1 file changed: 0 ins; 2 del; 1 mod
  Patch: https://git.openjdk.org/jdk20/pull/87.diff
  Fetch: git fetch https://git.openjdk.org/jdk20 pull/87/head:pull/87

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


More information about the hotspot-compiler-dev mailing list