src: apply getCallSite optimization#55174
Closed
RafaelGSS wants to merge 4 commits intonodejs:mainfrom
Closed
Conversation
Member
Author
|
I believe the coverage errors are unrelated to this PR. Are we tracking it somewhere? @nodejs/build |
Member
|
It appeared with #53256. Unrelated to build WG activities. |
joyeecheung
reviewed
Sep 30, 2024
anonrig
approved these changes
Sep 30, 2024
joyeecheung
approved these changes
Sep 30, 2024
anonrig
reviewed
Sep 30, 2024
src/node_util.cc
Outdated
| static void GetCallSite(const FunctionCallbackInfo<Value>& args) { | ||
| Environment* env = Environment::GetCurrent(args); | ||
| Isolate* isolate = env->isolate(); | ||
| v8::HandleScope handle_scope(isolate); |
Member
There was a problem hiding this comment.
Q for learning purposes: Why do we need a handle scope here?
Member
Author
There was a problem hiding this comment.
Oh this is no longer necessary. I was investigating a segmentation fault and though the variables were gcCollected before going back to JS.
joyeecheung
approved these changes
Sep 30, 2024
legendecas
approved these changes
Sep 30, 2024
Collaborator
Collaborator
Member
Author
|
Is it ok if I go ahead and land this PR? Coverage should be solved on |
RafaelGSS
added a commit
that referenced
this pull request
Oct 2, 2024
PR-URL: #55174 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Member
Author
|
Landed in 18536d9 |
targos
pushed a commit
that referenced
this pull request
Oct 4, 2024
PR-URL: #55174 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
targos
pushed a commit
that referenced
this pull request
Oct 4, 2024
PR-URL: #55174 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Merged
louwers
pushed a commit
to louwers/node
that referenced
this pull request
Nov 2, 2024
PR-URL: nodejs#55174 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
tpoisseau
pushed a commit
to tpoisseau/node
that referenced
this pull request
Nov 21, 2024
PR-URL: nodejs#55174 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applying one of @jasnell suggestions #54380 (comment)
Result an possible performance boost of ~14%