Integrated: 8303910: jdk/classfile/CorpusTest.java failed 1 of 6754 tests
Adam Sotona
asotona at openjdk.org
Tue Mar 14 08:38:58 UTC 2023
On Mon, 13 Mar 2023 18:54:11 GMT, Adam Sotona <asotona at openjdk.org> wrote:
> jdk/classfile/CorpusTest.java rarely fails in 1 of 6754 parametrised parallel junit tests
>
> The root cause seems to be thread-unsafe lazy initialisation of `TypeKind.newarraycodeToTypeTag` in `TypeKind::fromNewArrayCode`. Provided patch replaces that lazy-initialized helper array with switch expression.
>
> Please review.
>
> Thanks,
> Adam
This pull request has now been integrated.
Changeset: 43eca1dc
Author: Adam Sotona <asotona at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/43eca1dcb197e3615b6077a5d8aef28f32a7724c
Stats: 14 lines in 1 file changed: 4 ins; 2 del; 8 mod
8303910: jdk/classfile/CorpusTest.java failed 1 of 6754 tests
Reviewed-by: jpai
-------------
PR: https://git.openjdk.org/jdk/pull/13004
More information about the core-libs-dev
mailing list