RFR: 8332394: Add friendly output when @IR rule missing value

Hamlin Li mli at openjdk.org
Thu May 16 14:04:09 UTC 2024


Hi,
Can you help to review this simple patch?
Currently, when a @IR rule like "applyIfPlatform" or "applyIfCPUFeature" miss a value, it will just throw ArrayIndexOutOfBoundsException, with no other information. This is confusing unless you dig into the test frame code.
It's helpful to output more meaningful information.
Thanks

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

Commit messages:
 - Initial commit

Changes: https://git.openjdk.org/jdk/pull/19270/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19270&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8332394
  Stats: 4 lines in 1 file changed: 4 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/19270.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19270/head:pull/19270

PR: https://git.openjdk.org/jdk/pull/19270


More information about the hotspot-compiler-dev mailing list