Title: Clean mutexes as part of garbage collection cycle instead of uv_async by srajko · Pull Request #880 · nodegit/nodegit · GitHub
Open Graph Title: Clean mutexes as part of garbage collection cycle instead of uv_async by srajko · Pull Request #880 · nodegit/nodegit
X Title: Clean mutexes as part of garbage collection cycle instead of uv_async by srajko · Pull Request #880 · nodegit/nodegit
Description: Leaving the uv_async handle open was causing the node process to hang on exit. Cleaning up mutexes on garbage collection achieves the same goal (mutexes will get cleaned up at some point, when they are no longer needed), and avoids the issue. Using the GC is probably better performance-wise with thread safety enabled (mutex cleanup should be less frequent). With thread-safety disabled, the mutex cleanup gets skipped (though for simplicity, the GC callback is configured throughout - I imagine this has minimal performance impact). Fixes #866.
Open Graph Description: Leaving the uv_async handle open was causing the node process to hang on exit. Cleaning up mutexes on garbage collection achieves the same goal (mutexes will get cleaned up at some point, when the...
X Description: Leaving the uv_async handle open was causing the node process to hang on exit. Cleaning up mutexes on garbage collection achieves the same goal (mutexes will get cleaned up at some point, when the...
Opengraph URL: https://github.com/nodegit/nodegit/pull/880
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:33cb8c3f-4584-f425-cf9e-b9474facacd0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 94AC:1B9505:9A21AE1:CFA4845:6A5E7EF4 |
| html-safe-nonce | 1a257cc031fccb4b118e5516cddbd87f2df82cfe08c0f1fda1ad41fb9f18f7d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEFDOjFCOTUwNTo5QTIxQUUxOkNGQTQ4NDU6NkE1RTdFRjQiLCJ2aXNpdG9yX2lkIjoiMzc1NjcxMDg5NDE0MTE3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a7ffe60df8c79edeac486bda4d149a165f0a1cdcef048ae8b83c20bdf8c54df3 |
| hovercard-subject-tag | pull_request:57306480 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodegit/nodegit/pull/880/files |
| twitter:image | https://avatars.githubusercontent.com/u/291007?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/291007?s=400&v=4 |
| og:image:alt | Leaving the uv_async handle open was causing the node process to hang on exit. Cleaning up mutexes on garbage collection achieves the same goal (mutexes will get cleaned up at some point, when the... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 71950bbe6bf7e15662b868c102fed9d1682c29a05970d9b2daa2e4dd3522c52e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7514606601325843bc1c464d2d8bf5fe9af2c154 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width