RFR: 8290002: (se) AssertionError in SelectorImpl.implCloseSelector

Michael McMahon michaelm at openjdk.org
Mon Jul 11 11:21:50 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.

LGTM

-------------

Marked as reviewed by michaelm (Reviewer).

PR: https://git.openjdk.org/jdk/pull/9442


More information about the nio-dev mailing list