-
Notifications
You must be signed in to change notification settings - Fork 4.7k
node:worker_threads: implement postMessageToThread [1bx5ty] #29828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
robobun
wants to merge
49
commits into
main
Choose a base branch
from
farm/6140e626/worker-postMessageToThread
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
e20f9f9
node:worker_threads: implement postMessageToThread [1bx5ty]
robobun c93e868
test: bump timeouts on slow worker_threads fixture tests
robobun 731b331
[autofix.ci] apply automated fixes
autofix-ci[bot] ac00c9e
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] 76848e4
test: use on/removeListener instead of once for workerMessage
robobun f5c6c08
MessagePort: restore explicit-ref path for jsRef()
robobun 37c6af0
Merge branch 'main' into farm/6140e626/worker-postMessageToThread
dylan-conway 9f5770e
MessagePort: don't ref on onmessageerror; document lazy mainThreadPor…
robobun d284e83
test: bump timeouts on execArgv/environmentData subprocess tests
robobun 2869ce3
doc: clarify postMessageToThread pending-promise wording
robobun 4e55aef
MessagePort: release event-loop ref in close()
robobun 2896414
doc: note grandchild-orphan registry behaviour (matches Node)
robobun a56a2fe
test: set 30s default timeout for worker_threads.test.ts
robobun a916a10
MessagePort: unref when onmessage is set to a non-function
robobun 394f3c3
doc: update WorkerOptions.h comment for 3-element serialized array
robobun 54ed0ac
build(linux): only strip .eh_frame* when LTO is on
robobun abc2aca
worker_threads: cache threadId so destroyMainThreadPort gets the real id
robobun 2a7ebc4
Worker: set OnlineFlag before posting 'open' to the parent
robobun b5fabb6
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun e7b3f37
MessagePort: release event-loop ref in disentangle()
robobun 421858e
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun 869a683
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun a9cdbd3
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun 7da988b
MessagePort: keep JS wrapper alive while a drain is in progress
robobun b185dbe
MessagePortPipe: mirror peer's Closed bit so hasPendingActivity is a …
robobun f89b558
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun 37b4f72
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun 27d4a88
MessagePort: release event-loop ref in destructor
robobun 5f762a4
MessagePort: re-enable m_hasRef on first message listener (Node parity)
robobun 5921a26
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun 000ac8f
test: cover port.unref(); port.on() re-ref ordering (Node newListener…
robobun ca91e0e
MessagePort: mirror Node's removeListener → unref() on last message l…
robobun fe34005
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun 0256397
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun ba2b25b
[autofix.ci] apply automated fixes
autofix-ci[bot] 679c0cc
ErrorCode: append ERR_WORKER_MESSAGING_* at end to keep ordinals alig…
robobun b041a00
ci: retrigger (macOS 14 x64 node-http-backpressure-max timeout, share…
robobun 51bf80f
codegen(bake): JSON.stringify OVERLAY_CSS define value
robobun 6a28d90
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun 5162107
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun dba9973
Merge branch 'main' into farm/6140e626/worker-postMessageToThread
robobun 0936e25
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun 6e0f5e4
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun a8c13bf
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun 7a5bc2d
worker: drain pending concurrent tasks on teardown
robobun 82d5ef2
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun acc8654
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun 06a74c0
test: sync message-port-pipe comment with PeerClosed rename
robobun f990b80
Merge remote-tracking branch 'origin/main' into farm/6140e626/worker-…
robobun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.