Summary: | kdirwatch refcounting (stop exhausting fs.inotify.max_user_instances) | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kcoreaddons | Reporter: | Harald Sitter <sitter> |
Component: | general | Assignee: | Michael Pyne <mpyne> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | faure, kdelibs-bugs, nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=423818 | ||
Latest Commit: | https://invent.kde.org/frameworks/kcoreaddons/commit/ac616bd02a1c99fc706e244455ed92a4b5e9e320 | Version Fixed In: | 5.75 |
Sentry Crash Report: |
Description
Harald Sitter
2020-07-06 14:01:35 UTC
Makes sense :-) A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kcoreaddons/-/merge_requests/25 Git commit ac616bd02a1c99fc706e244455ed92a4b5e9e320 by Harald Sitter. Committed on 11/09/2020 at 10:40. Pushed by dfaure into branch 'master'. refcount and delete KDirWatchPrivate instances this adds reference counting for frontend users of KDirWatchPrivate instances. it allows us to clean up the thread-local private object when no more frontend objects are left. this enables heavily threaded applications to release inotify instances for threads that aren't deleted but instead returned to a pool. FIXED-IN: 5.75 M +3 -1 autotests/CMakeLists.txt M +20 -0 autotests/kdirwatch_unittest.cpp M +22 -1 src/lib/io/kdirwatch.cpp M +8 -0 src/lib/io/kdirwatch_p.h https://invent.kde.org/frameworks/kcoreaddons/commit/ac616bd02a1c99fc706e244455ed92a4b5e9e320 |