-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
lib: clean up references to GCed abort signals #55354
lib: clean up references to GCed abort signals #55354
Conversation
eeedef5
to
a31583a
Compare
a31583a
to
845e5d2
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #55354 +/- ##
==========================================
- Coverage 88.41% 88.41% -0.01%
==========================================
Files 652 652
Lines 186864 186878 +14
Branches 36064 36064
==========================================
+ Hits 165217 165229 +12
- Misses 14888 14891 +3
+ Partials 6759 6758 -1
|
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.
Does this fix #55351?
yes. It is intented to fix that. I will add the ref. |
91c7d36
to
0c94df4
Compare
7fde7c9
to
1550729
Compare
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.
Otherwise LGTM
51eea65
to
c749402
Compare
Commit Queue failed- Loading data for nodejs/node/pull/55354 ✔ Done loading data for nodejs/node/pull/55354 ----------------------------------- PR info ------------------------------------ Title lib: clean up references to GCed abort signals (#55354) Author Edigleysson Silva (Edy) <edigleyssonsilva@gmail.com> (@geeksilva97) Branch geeksilva97:abortsignal-mem-leak -> nodejs:main Labels author ready, needs-ci, abortcontroller Commits 12 - lib: remove settled dependant signals when they are GCed - test: test settled signals dropping - fixup: typo - fix: avoid holding strong reference on finalizers - test: improve tests - lib: optmize finalizers logic - test: ensure short-lived signals are GCed - refactor: rename variables for improving readability - test: improve signal dropping test - test: test settled signals when AbortSignal.any receives a composite … - refactor: remove unneeded describe - chore: address pr's comments Committers 1 - Edy Silva <edigleyssonsilva@gmail.com> PR-URL: https://github.com/nodejs/node/pull/55354 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/55354 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> -------------------------------------------------------------------------------- ℹ This PR was created on Thu, 10 Oct 2024 19:39:41 GMT ✔ Approvals: 2 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/55354#pullrequestreview-2365009577 ✔ - Chemi Atlow (@atlowChemi): https://github.com/nodejs/node/pull/55354#pullrequestreview-2367476798 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2024-10-14T15:55:25Z: https://ci.nodejs.org/job/node-test-pull-request/63096/ - Querying data for job/node-test-pull-request/63096/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 55354 From https://github.com/nodejs/node * branch refs/pull/55354/merge -> FETCH_HEAD ✔ Fetched commits as 10addb0a208c..c74940249bd5 -------------------------------------------------------------------------------- [main 4745da97a9] lib: remove settled dependant signals when they are GCed Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Thu Oct 10 17:21:35 2024 -0300 1 file changed, 11 insertions(+) [main 2bdfd0d35a] test: test settled signals dropping Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Thu Oct 10 18:37:47 2024 -0300 1 file changed, 64 insertions(+) create mode 100644 test/parallel/test-abortsignal-drop-settled-signals.mjs [main 6fb8c73417] fixup: typo Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Thu Oct 10 21:59:08 2024 -0300 2 files changed, 15 insertions(+), 22 deletions(-) [main 2cfd50727a] fix: avoid holding strong reference on finalizers Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Fri Oct 11 00:04:54 2024 -0300 1 file changed, 8 insertions(+), 3 deletions(-) [main 65f4b7a559] test: improve tests Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Fri Oct 11 01:12:53 2024 -0300 1 file changed, 22 insertions(+), 20 deletions(-) [main 11b379fef8] lib: optmize finalizers logic Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Fri Oct 11 10:32:19 2024 -0300 2 files changed, 6 insertions(+), 5 deletions(-) [main 15bafd6818] test: ensure short-lived signals are GCed Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Fri Oct 11 10:57:37 2024 -0300 1 file changed, 33 insertions(+) [main 92d13d06cf] refactor: rename variables for improving readability Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Fri Oct 11 11:03:10 2024 -0300 1 file changed, 9 insertions(+), 10 deletions(-) [main e2ada51234] test: improve signal dropping test Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Fri Oct 11 12:12:36 2024 -0300 1 file changed, 44 insertions(+), 5 deletions(-) [main 1c899c72ef] test: test settled signals when AbortSignal.any receives a composite signal Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Fri Oct 11 14:21:22 2024 -0300 1 file changed, 20 insertions(+), 21 deletions(-) [main 7c9801c22a] refactor: remove unneeded describe Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Fri Oct 11 14:25:54 2024 -0300 1 file changed, 6 insertions(+), 8 deletions(-) [main d673215df0] chore: address pr's comments Author: Edy Silva <edigleyssonsilva@gmail.com> Date: Mon Oct 14 11:05:12 2024 -0300 2 files changed, 20 insertions(+), 28 deletions(-) ✔ Patches applied There are 12 commits in the PR. Attempting autorebase. Rebasing (2/24)https://github.com/nodejs/node/actions/runs/11334066922 |
Landed in 7a7c2b3 |
PR-URL: nodejs#55354 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
See #55389 (comment) Why are you backporting this? It lands cleanly, meaning that a manual backport isn't needed |
Both are closed. |
PR-URL: #55354 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
PR-URL: nodejs#55354 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
PR-URL: nodejs#55354 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Refs #55351
Using this commit's description as a reference, this PR adds a
SafeFinalizationRegistry
to remove GCed dependant signals' references since they will no longer abort.