Uh oh!
There was an error while loading. Please reload this page.
src: apply getCallSite optimization - #55174
Closed
RafaelGSS wants to merge 4 commits into
Closed
Conversation
RafaelGSS
commented
Sep 30, 2024
MemberAuthor
I believe the coverage errors are unrelated to this PR. Are we tracking it somewhere? @nodejs/build |
targos
commented
Sep 30, 2024
Member
It appeared with #53256. Unrelated to build WG activities. |
Uh oh!
There was an error while loading. Please reload this page.
anonrig
approved these changes
Sep 30, 2024
joyeecheung
approved these changes
Sep 30, 2024
anonrig
reviewed
Sep 30, 2024
| 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?
MemberAuthor
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
nodejs-github-bot
commented
Sep 30, 2024
Collaborator
Collaborator
RafaelGSS
commented
Oct 1, 2024
MemberAuthor
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>
RafaelGSS
commented
Oct 2, 2024
MemberAuthor
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
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 freeto 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%