RFR: 8256726: Zero: print proper message in ArrayIndexOutOfBoundException [v3]

Aleksey Shipilev shade at openjdk.java.net
Fri Nov 27 09:30:10 UTC 2020


> Manifests on tier1 test:
> 
> $ CONF=linux-x86_64-zero-fastdebug make run-test TEST=runtime/exceptionMsgs/ArrayIndexOutOfBoundsException/
> test ArrayIndexOutOfBoundsExceptionTest.testAIOOBMessages(): failure
> java.lang.AssertionError: expected [Index -5 out of bounds for length 0] but found [-5]
> 
> Fix does similar thing to what `Runtime1::throw_range_check_exception` does, but using a safer `jio_snprintf`.
> 
> Additional testing:
>  - [x] AIOBB tests on Linux x86_64 Zero fastdebug

Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:

  Even cleaner, with comments

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1341/files
  - new: https://git.openjdk.java.net/jdk/pull/1341/files/bd0e0830..e6c5c54c

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1341&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1341&range=01-02

  Stats: 4 lines in 1 file changed: 1 ins; 0 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1341.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1341/head:pull/1341

PR: https://git.openjdk.java.net/jdk/pull/1341


More information about the hotspot-runtime-dev mailing list