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.
Add a lock-based message passing queue to help debug a problem with R…
…ecycler (netty#11972) Motivation: The Recycler has been observed to produce infinite loops on ARM CPUs. It is not clear if this is caused by a JDK bug, a JCTools bug, or a Recycler bug. Having the ability to switch out the JCTools queue implementation will aid us in the investigation. Modification: Implement MessagePassingQueue as a synchronized ArrayDeque, and add a system property to enable the use of this implementation in Recycler. Result: We should now be able to rule out the possibility of a bug in either JCTools or the Recycler.
- Loading branch information
Showing
2 changed files
with
121 additions
and
9 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