-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: Memory leak #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Memory leak #114
Conversation
Codecov Report
@@ Coverage Diff @@
## master #114 +/- ##
==========================================
- Coverage 95.84% 93.94% -1.91%
==========================================
Files 9 9
Lines 554 380 -174
==========================================
- Hits 531 357 -174
+ Misses 16 14 -2
- Partials 7 9 +2
Continue to review full report at Codecov.
|
|
Also please resolve this one: Lines 274 to 286 in ad86bfa
as well. |
Sure, no problem |
panjf2000
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that this bugfix is intuitive enough, no need to add unit tests, please remove it.
Gotcha😃 |
|
Thanks~ |
@panjf2000 |
|
I have a point that I don't quite understand: After the double check, isn't it still possible that the pool might be closed? So, what's the purpose of this double check? |
|
@coticom If the pool has been closed, |
IIUC, the first one looks more like is a best-effort early check. But it's IOW, I don't believe that the first one is necessary in common cases :) |
Fixes #113