Repository navigation
chore: remove redundant isolate params in the context bridge - #52569
Conversation
Assisted-by: Claude Opus 5
deepak1556
left a comment
There was a problem hiding this comment.
Thanks!
It would be worth having a CHECK under PassValueToOtherContext that source and destination context are resolving to same isolate ?
|
@deepak1556, good suggestion, EDIT: Actually, I reverted that, rushed it a little too much on the way out the door. It looks like in the latest V8 versions since they removed |
This reverts commit 322b724.
MarshallOfSound
left a comment
There was a problem hiding this comment.
Don't node worker threads ran off of multiple isolates?
|
Right same for web workers as well, my assumption was with the current tests this module does not cross isolate boundaries, the change before this PR was always defaulting to source isolate. What is the scenario you are thinking of with worker threads ? |
|
Given |
|
I couldn't trace back cross isolate support, our current context extractors are working based off frame associated script states which doesn't have idea about worker threads. Even the service worker preload realms are only operating on same isolate contexts. Given this PR is currently cleaning up an incorrect mechanical change from #48212 when |
|
@MarshallOfSound, in addition to Deepak's comment, in response to "Given |
|
No Release Notes |
|
I have automatically backported this PR to "43-x-y", please check out #52703 |
|
I have automatically backported this PR to "44-x-y", please check out #52704 |
|
I have automatically backported this PR to "42-x-y", please check out #52705 |
Description of Change
The
target_isolateanddestination_isolateparameters were plumbed in on #48212 but were left dangling inGetInitiatorContext, so they were dead code. Since contexts are within the same isolate, we shouldn't need to plumb down the target/destination isolate as its always the same as the source isolate - this was confirmed for all existing call sites.This was initially flagged by the
clang-analyzer-deadcode.DeadStorescheck inclang-tidy, since there's an assignment totarget_isolateinGetInitiatorContextthat's never read back.Checklist
Release Notes
Notes: none