Repository navigation
Never hand one StringImpl to two threads' atom tables (object URLs, BroadcastChannel, --compile workers) #40436
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b5d1e41
Never hand one StringImpl to two threads' atom tables
dylan-conway 015ae99
review: drop the AsyncHTTP borrower before the buffers it borrows; co…
dylan-conway 3304f3b
[autofix.ci] apply automated fixes
autofix-ci[bot] 2bec779
docs: cross-thread rule is about atomizable impls
dylan-conway 2ba05bd
Merge remote-tracking branch 'origin/claude/cross-thread-strings-2' i…
dylan-conway 5444d80
ObjectURLRegistry: keep an isolated copy of the name and give each re…
dylan-conway 4c7b18f
use StringImpl::isSubString()
dylan-conway 0181b24
tests: pipe and assert stderr
dylan-conway 3a472a5
One primitive for cross-VM strings: String::share() (isolate if neede…
dylan-conway dbd332c
Merge branch 'main' into claude/cross-thread-strings-2
Jarred-Sumner 4ed92e7
Merge remote-tracking branch 'origin/main' into claude/cross-thread-s…
dylan-conway 72f1a43
Merge remote-tracking branch 'origin/main' into claude/cross-thread-s…
dylan-conway 5c84363
Rename: String::thread_isolated_copy() (was to_thread_safe) and make_…
dylan-conway 8c215f3
source-lints: ThreadSafe<T> -> ThreadShareable<T> in the thread-door …
dylan-conway 92ac381
is_thread_isolated() and is_thread_shareable() check exactly what thr…
dylan-conway 1d9c6d0
makeThreadShareable: don't rewrite the never-atomize flag on an impl …
dylan-conway fbc53f9
review: hand-off family is ThreadIsolated/make_thread_isolated (one o…
dylan-conway 150fe27
Readable::init: drop the Stdio it consumes (only the memfd is moved o…
dylan-conway 2b81d4a
Readable::init: silence unused memfd on Windows
dylan-conway 2b11402
Merge branch 'main' into claude/cross-thread-strings-2
dylan-conway eea22c7
get_file_name: an empty name is not a filename (loader/Content-Dispos…
dylan-conway d17704b
Merge remote-tracking branch 'origin/claude/cross-thread-strings-2' i…
dylan-conway 3c98f82
Bun.file(path)/S3 store paths: back to an isolated copy (main's behav…
dylan-conway 13bf71d
bake module_keys: back to main's isolated copy (one VM today)
dylan-conway 0d976d1
Utf8WithString::thread_isolated_copy: build the copy instead of mutat…
dylan-conway 55b4156
Rename Bun::isolatedCopyForSharing -> Bun::threadShareableCopy
dylan-conway c0dc9c1
Utf8WithString::thread_isolated_copy: exactly main's to_thread_safe (…
dylan-conway 4cb843b
Utf8WithString::thread_isolated_copy: when the bytes were already tra…
dylan-conway f5f11b8
Readable::init: handle Memfd inside the match (no pre-pass, no unreac…
dylan-conway e04c24e
PathLike/PathOrFileDescriptor::thread_isolated_copy: by value, like S…
dylan-conway 2f2c069
docs: PathLike::thread_isolated_copy name in CLAUDE.md
dylan-conway 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
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.