| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add member to hold the async context frame to AsyncResource to avoid the need for the async_resource_context_frames_ map in env. Semver major because it changes ABI.
|
fyi @Qard If you think it's too early to add this semver major change in the async context frame area let me know. |
Sorry, something went wrong.
Codecov ReportAll modified and coverable lines are covered by tests ✅ Additional details and impacted files @@ Coverage Diff @@
## main #54879 +/- ##
==========================================
- Coverage 87.89% 87.89% -0.01%
==========================================
Files 651 651
Lines 183363 183348 -15
Branches 35710 35714 +4
==========================================
- Hits 161170 161154 -16
- Misses 15464 15468 +4
+ Partials 6729 6726 -3
|
Sorry, something went wrong.
There was a problem hiding this comment.
Generally LGTM, but I would like to wait until we can have some time to verify correctness of the AsyncContextFrame behaviour with customer testing before we commit any major ABI changes. Particularly we should be careful about this because of the feature being flag switched with the prior design.
Sorry, something went wrong.
|
Do you expect this testing before 23 release? |
Sorry, something went wrong.
|
Unlikely. This will exist behind a flag for a while yet. I'm mainly concerned about if we impact the unflagged behaviour negatively while this is still being evaluated. Also, the flag would not be going away at any point, it just may swap its default as Electron also depends on ContinuationPreservedEmbedderData so they would need a way to opt out. For this reason we will need to be sure we don't break the original behaviour. |
Sorry, something went wrong.
|
Well, the impact is there before and after this PR as AsyncResource creates a v8:Global pointing to async_context_frame::current() which always calls isolate->GetContinuationPreservedEmbedderData(). If target is to avoid side effects/overhead we like should add some more if (env->options()->async_context_frame) to avoid calling I do not see the ABI change itself as critical as new majors have a ABI changes anyway. API is not changed. But well, maybe delay this tuning till the next LTS. I don't expect a significant impact anyway. |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
|
I won't block if we feel we want to land sooner. I just wanted to be sure we aren't making ABI changes if they are unwanted. If there are other ABI changes happening anyway then probably fine to just land this. |
Sorry, something went wrong.
|
Every major has a different ABI simply because of v8 changes. My question to delay was more towards backporting/improving. Any difference between 23 and older could complicate this. I think it's better to wait at least till 24 to avoid complications. So closing this for now. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Add member to hold the async context frame to AsyncResource to avoid the need for the async_resource_context_frames_ map in env.
Semver major because it changes ABI.