-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: exercise callNow in local-worker case
This is the only type of worker which can currently handle syscall.callNow. The `node-subprocess` case theoretically could (the child subprocess could do a blocking read of the kernel-to-worker pipe while waiting for the result), but the code on either side of that pipe does not yet support that mode. The `nodeWorker` (Node.js threads) case cannot, because threads cannot block, at least not without heroics involving `Atomic` locks around a results-bearing `SharedArrayBuffer`. The old `xs-worker` case could not, for the same shallow implementation reasons as `node-subprocess`, but the new `xsnap` -based XS worker should be capable. closes #1617
- Loading branch information
Showing
4 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export function buildRootDeviceNode() { | ||
return harden({ | ||
add(x, y) { | ||
return x + y; | ||
}, | ||
}); | ||
} |
This file contains 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
This file contains 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