Integrated: 8290002: (se) AssertionError in SelectorImpl.implCloseSelector
Alan Bateman
alanb at openjdk.org
Mon Jul 11 14:43:49 UTC 2022
On Sun, 10 Jul 2022 06:54:56 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> This change adjusts an incorrect assert in the Selector implementation. The assert is incorrect since JDK 11 and JDK-8201315. The correct assert here is to test that the selector's selected-key set is empty. The selector's key set is not guaranteed to be empty here as there may be other threads registering channels while the selector is being closed.
This pull request has now been integrated.
Changeset: fc01666a
Author: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/fc01666a5824d55b2549c81c0c3602aafdec693c
Stats: 4 lines in 1 file changed: 1 ins; 0 del; 3 mod
8290002: (se) AssertionError in SelectorImpl.implCloseSelector
Reviewed-by: michaelm
-------------
PR: https://git.openjdk.org/jdk/pull/9442
More information about the nio-dev
mailing list