Integrated: 8283719: java/util/logging/CheckZombieLockTest.java failing intermittently
Daniel Fuchs
dfuchs at openjdk.java.net
Mon Apr 11 13:46:34 UTC 2022
On Fri, 8 Apr 2022 16:37:07 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> Please find enclosed a patch for
> `8283719: java/util/logging/CheckZombieLockTest.java failing intermittently`
>
> My analysis is that the test fails intermittently because the `FileChannel` created by the test is garbage collected too early, which releases the associated lock before the `FileHandler` is created.
> I have replaced the `try { } finally { }` with a `try-with-resource( ) { } finally { }` which will prevent the `FileChannel` from being released before the end of the block. Additional bonus: this should also help with the code that tries to cleanup the files at the end.
>
> Though I haven't been able to reproduce the exact failure yet, I haven't observed the new version of the test failing either.
This pull request has now been integrated.
Changeset: 74835f73
Author: Daniel Fuchs <dfuchs at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/74835f73893976c162ef5a441f0cfec16eb8706f
Stats: 16 lines in 1 file changed: 3 ins; 6 del; 7 mod
8283719: java/util/logging/CheckZombieLockTest.java failing intermittently
Reviewed-by: alanb
-------------
PR: https://git.openjdk.java.net/jdk/pull/8168
More information about the core-libs-dev
mailing list