RFR: 8256726: Zero: print proper message in ArrayIndexOutOfBoundException
Aleksey Shipilev
shade at openjdk.java.net
Fri Nov 20 09:20:11 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
-------------
Commit messages:
- Use safer jio_snprintf
- 8256726: Zero: print proper message in ArrayIndexOutOfBoundException
Changes: https://git.openjdk.java.net/jdk/pull/1341/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1341&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8256726
Stats: 4 lines in 1 file changed: 2 ins; 0 del; 2 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