RFR: 8256726: Zero: print proper message in ArrayIndexOutOfBoundException [v2]
Aleksey Shipilev
shade at openjdk.java.net
Fri Nov 27 09:21:19 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
- Count the additional message length exactly
- Merge branch 'master' into JDK-8256726-zero-aioob
- Use safer jio_snprintf
- 8256726: Zero: print proper message in ArrayIndexOutOfBoundException
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/1341/files
- new: https://git.openjdk.java.net/jdk/pull/1341/files/3e4e1615..bd0e0830
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1341&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1341&range=00-01
Stats: 143520 lines in 940 files changed: 117419 ins; 8488 del; 17613 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