forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race in NonStickyOrderedEventExecutor that affects inEventLoop(..…
….) (netty#13237) Motivation: 53b6dd4 added support for inEventLoop(...) but did have a bug related to when the saved executing Thread was set to null. This could lead to inEventLoop(...) returning the wrong value. Modifications: Replace volatile by AtomicReference to ensure we only set the saved executiong Thread to null when it was not updated by another Thread yet. Result: No more races
- Loading branch information
1 parent
3d8a62a
commit 59aa6e6
Showing
1 changed file
with
9 additions
and
5 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