| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Review requested:
|
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #63024 +/- ##
==========================================
- Coverage 91.49% 89.64% -1.85%
==========================================
Files 358 708 +350
Lines 151574 220415 +68841
Branches 23921 42272 +18351
==========================================
+ Hits 138679 197596 +58917
- Misses 12619 14675 +2056
- Partials 276 8144 +7868
... and 471 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm
Sorry, something went wrong.
|
Ready from my side, thanks! |
Sorry, something went wrong.
Signed-off-by: semimikoh <ejffjeosms@gmail.com>
Commit Queue failed- Loading data for nodejs/node/pull/63024 ✔ Done loading data for nodejs/node/pull/63024 ----------------------------------- PR info ------------------------------------ Title ffi: prevent premature GC of DynamicLibrary (#63024) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch semimikoh:fix/ffi-premature-library-gc -> nodejs:main Labels c++, author ready, needs-ci, ffi Commits 1 - ffi: prevent premature GC of DynamicLibrary Committers 1 - semimikoh <ejffjeosms@gmail.com> PR-URL: https://github.com/nodejs/node/pull/63024 Fixes: https://github.com/nodejs/node/issues/63010 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Bryan English <bryan@bryanenglish.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/63024 Fixes: https://github.com/nodejs/node/issues/63010 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Bryan English <bryan@bryanenglish.com> -------------------------------------------------------------------------------- ℹ This PR was created on Wed, 29 Apr 2026 05:51:17 GMT ✔ Approvals: 4 ✔ - Paolo Insogna (@ShogunPanda) (TSC): https://github.com/nodejs/node/pull/63024#pullrequestreview-4194878077 ✔ - Anna Henningsen (@addaleax): https://github.com/nodejs/node/pull/63024#pullrequestreview-4197628494 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/63024#pullrequestreview-4197975170 ✔ - Bryan English (@bengl): https://github.com/nodejs/node/pull/63024#pullrequestreview-4199352943 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2026-04-29T07:30:26Z: https://ci.nodejs.org/job/node-test-pull-request/73010/ ⚠ Commits were pushed after the last Full PR CI run: ⚠ - ffi: prevent premature GC of DynamicLibrary - Querying data for job/node-test-pull-request/73010/ ✔ Build data downloaded ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/25205417009 |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes: #63010
Functions created by getFunction() do not hold a strong reference
to the owning DynamicLibrary. V8 may garbage-collect the library
while derived functions are still in use, causing spurious
ERR_FFI_LIBRARY_CLOSED errors in tight loops.
Store a Global<Object> reference to the library in
FFIFunctionInfo so the library remains alive as long as any
derived function exists. The reference is released when the
function is garbage-collected via CleanupFunctionInfo.
Verification