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 Blockhound exceptions for the PooledByteBufAllocator (netty#12653)
Motivation: In netty#12622 we replaced a number of synchronised blocks with explicit locks. It turns out that blockhound ignores synchronised blocks for some reason, and now complain about the explicit locks. Modification: Add exceptions and allow blocking calls in select methods in the PooledByteBufAllocator. Also add a test that create races inside the pooled allocator in an attempt to get the thread blocked on the locks while blockhound is watching. Result: No more blockhound complaints.
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 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