-
Notifications
You must be signed in to change notification settings - Fork 322
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
feat: open/close dl without self-defined reference count #3401
base: main
Are you sure you want to change the base?
feat: open/close dl without self-defined reference count #3401
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3401 +/- ##
============================================
- Coverage 75.70% 75.68% -0.02%
Complexity 414 414
============================================
Files 700 701 +1
Lines 126668 126667 -1
Branches 1206 1206
============================================
- Hits 95888 95867 -21
- Misses 30539 30559 +20
Partials 241 241
☔ View full report in Codecov by Sentry. |
if (iter->second->ref_cnt == 0) { | ||
so_handle = iter->second; | ||
handle_map_.erase(iter); | ||
if (iter->second != nullptr) { |
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.
erase first
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.
a dynamic lib may be used by multi functions.
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
CREATE FUNCTION: dlopen/dlclose not need to mutex lock handler #3378
What is the new behavior (if this is a feature change)?