-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
src: move more to node_process.cc from node.cc #22422
Conversation
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.
Rubber Stamp
Related failures in CI. Will revisit later today. |
@@ -948,6 +952,26 @@ void StopProfilerIdleNotifier(const v8::FunctionCallbackInfo<v8::Value>& args); | |||
void Umask(const v8::FunctionCallbackInfo<v8::Value>& args); | |||
void Uptime(const v8::FunctionCallbackInfo<v8::Value>& args); | |||
|
|||
void EnvDeleter(v8::Local<v8::Name> property, |
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.
Any reason not to have a node_process.h
. IIUC these function are only used in node.cc
.
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.
Eventually everything in node.cc that relates to the process
object should be moved over to node_process.cc
. Once that is done, we shouldn't need the declarations in node_internals.h
any more and definitely won't need a node_process.h
. These definitions are transitional only since SetupProcessObject
is still in node.cc
. I won't move that until after @addaleax's options parser stuff lands.
src/node_internals.h
Outdated
@@ -171,6 +171,10 @@ struct sockaddr; | |||
|
|||
namespace node { | |||
|
|||
static Mutex process_mutex; |
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.
Shouldn't these be extern
? with the definition only in node_process.cc
?
88211d3
to
de58897
Compare
Updated CI with (hopefully) fixes: https://ci.nodejs.org/job/node-test-pull-request/16641/ |
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.
LGTM (once @refack’s comment from #22422 (comment) is addressed)
de58897
to
a8bbb33
Compare
CI is good. |
a8bbb33
to
2019d35
Compare
CI after rebase: https://ci.nodejs.org/job/node-test-pull-request/16688/ |
PR-URL: #22422 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Landed in 264c99f |
PR-URL: #22422 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #22422 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #22422 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Incrementally moving more stuff for the
process
object over tonode_process.cc
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes