-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement contains for SelectedSelectionKeySet (#13452)
Motivation: The `contains` method may be called in the `sub.nio.ch.SelectorImpl.processReadyEvents` method on macOS and Windows, so we need to implement it correctly. Otherwise, we can lose read-poll events. See the investigation on the Hazelcast repo: hazelcast/hazelcast#24267 Modification: Add a contains method that just does a linear scan for the selection key. This preserves the performance characteristics of all the other methods. Result: Fixes #13328
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters