GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — doc: remove `--expose-gc` flag from CLI documentation by dario-piotrowicz · Pull Request #58909 · nodejs/node Conversation
Member
The CLI documentation for However it's removal was requested in #53078 (comment) (since this is not something users should generally rely on), but the documentation wasn't fully removed from the PR before it landed. So I believe that the flag being documented might have been an oversight. Original context: #58878 (comment) Note: I'm trying to figure out here if Note: I wanted to also mention that the flag is also included in the allowed v8 options and the useful v8 options
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
jakecastelli
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one feels similar to the We use
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
The V8 team is not that good documenting flags as well. From my personal experience, I just have to look at this file https://github.com/v8/v8/blob/b5b7de9cc158c9d4dc038841e5935c49e4764d7e/src/flags/flag-definitions.h#L2594 Again, this is not a blocker, but I don't see this adding any actual value but making things a bit more confusing. I know Node.js has a mess w/ node options and CLI options, but removing docs is not the answer IMHO.
The requested removal of the docs was something about V8 I wrote about. Not the CLI entry and usage. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I see, that's a useful link to know about, thank you very much 🙏
Thanks a lot, I really appreciate the input 🙂 , personally I see the argument both ways, if we think that this is a foot gun and not something people should be using then it makes sense to me that we don't publicly document it, on the other hand if it is something that node provides it does make sense to document that... I would have hoped for more people to chip in here 😅 , hopefully someone else will tipping the scale in either direction 🤞 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Should we move it to https://nodejs.org/api/cli.html#useful-v8-options? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think moving it to the useful V8 options section would be the right move - it's not up to Node.js to decide how it behaves, so it shouldn't be documented like other Node.js options. FWIW the existing documentation is somewhat misleading - it would make you think that this triggers a blocking GC that's supposed to clean up all remaining unreachable objects, but that's not the case and even has been the cause of some of our flakes. That function only triggers one GC, and one single GC does not guarantee to clean up everything especially when there are weak references or ephemeron pairs in the graph. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
+1 on Joyee's suggestion |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's already in Useful V8 Options section:
Line 4255 in 4f4077a
| ### `--expose-gc` |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Commit Queue failed- Loading data for nodejs/node/pull/58909 ✔ Done loading data for nodejs/node/pull/58909 ----------------------------------- PR info ------------------------------------ Title doc: remove `--expose-gc` flag from CLI documentation (#58909) Author Dario Piotrowicz <[email protected]> (@dario-piotrowicz) Branch dario-piotrowicz:dario/remove-expose-gc-from-cli -> nodejs:main Labels doc, cli, author ready Commits 1 - doc: remove `--expose-gc` flag from CLI documentation Committers 1 - Dario Piotrowicz <[email protected]> PR-URL: https://github.com/nodejs/node/pull/58909 Reviewed-By: Jake Yuesong Li <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/58909 Reviewed-By: Jake Yuesong Li <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> -------------------------------------------------------------------------------- ℹ This PR was created on Mon, 30 Jun 2025 22:24:25 GMT ✔ Approvals: 2 ✔ - Jake Yuesong Li (@jakecastelli): https://github.com/nodejs/node/pull/58909#pullrequestreview-2975252574 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/58909#pullrequestreview-4323953013 ✔ Last GitHub CI successful ℹ Green GitHub CI is sufficient -------------------------------------------------------------------------------- ✔ 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 58909 From https://github.com/nodejs/node * branch refs/pull/58909/merge -> FETCH_HEAD ✔ Fetched commits as 4f4077a299f1..154d819b56da -------------------------------------------------------------------------------- Auto-merging doc/api/cli.md [main c106c49288] doc: remove `--expose-gc` flag from CLI documentation Author: Dario Piotrowicz <[email protected]> Date: Mon Jun 30 23:02:40 2025 +0100 1 file changed, 19 deletions(-) ✔ Patches applied -------------------------------------------------------------------------------- --------------------------------- New Message ---------------------------------- doc: remove `--expose-gc` flag from CLI documentationhttps://github.com/nodejs/node/actions/runs/26131088912 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Commit needs to be signed in order to land ✖ 0:0 Commit must have a "Signed-off-by" trailer signed-off-by@dario-piotrowicz Can you sign the commit by running |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in a8350ac |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: Antoine du Hamel <[email protected]> PR-URL: #65053 Refs: #58909 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
PR-URL: #58909 Reviewed-By: Jake Yuesong Li <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Signed-off-by: Antoine du Hamel <[email protected]> PR-URL: #65053 Refs: #58909 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
PR-URL: #58909 Reviewed-By: Jake Yuesong Li <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Signed-off-by: Antoine du Hamel <[email protected]> PR-URL: #65053 Refs: #58909 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
PR-URL: #58909 Reviewed-By: Jake Yuesong Li <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.