Integrated: 8256726: Zero: print proper message in ArrayIndexOutOfBoundException
Aleksey Shipilev
shade at openjdk.java.net
Sun Nov 29 08:05:57 UTC 2020
On Fri, 20 Nov 2020 09:14:13 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> 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
This pull request has now been integrated.
Changeset: 87f37aa2
Author: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/87f37aa2
Stats: 8 lines in 1 file changed: 6 ins; 0 del; 2 mod
8256726: Zero: print proper message in ArrayIndexOutOfBoundException
Reviewed-by: dholmes, sgehwolf
-------------
PR: https://git.openjdk.java.net/jdk/pull/1341
More information about the hotspot-runtime-dev
mailing list