-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: apply getCallSite optimization #55174
Conversation
I believe the coverage errors are unrelated to this PR. Are we tracking it somewhere? @nodejs/build |
It appeared with #53256. Unrelated to build WG activities. |
src/node_util.cc
Outdated
@@ -249,6 +250,7 @@ static void ParseEnv(const FunctionCallbackInfo<Value>& args) { | |||
static void GetCallSite(const FunctionCallbackInfo<Value>& args) { | |||
Environment* env = Environment::GetCurrent(args); | |||
Isolate* isolate = env->isolate(); | |||
v8::HandleScope handle_scope(isolate); |
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.
Q for learning purposes: Why do we need a handle scope here?
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.
Oh this is no longer necessary. I was investigating a segmentation fault and though the variables were gcCollected before going back to JS.
Is it ok if I go ahead and land this PR? Coverage should be solved on |
PR-URL: #55174 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
Landed in 18536d9 |
PR-URL: #55174 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
PR-URL: #55174 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
PR-URL: nodejs#55174 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
Applying one of @jasnell suggestions #54380 (comment)
Result an possible performance boost of ~14%