-
Notifications
You must be signed in to change notification settings - Fork 5k
Bun.file(buffer) / async fs: hold the path buffer's backing store instead of rooting the JS object #38509
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
dylan-conway
wants to merge
14
commits into
main
Choose a base branch
from
claude/pathlike-unpin-gc-sweep
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
Bun.file(buffer) / async fs: hold the path buffer's backing store instead of rooting the JS object #38509
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0606e6e
Bun.file(buffer): copy the path instead of pinning the JS buffer for …
dylan-conway 89c8e2c
Keep Buffer paths zero-copy: hold the ArrayBuffer backing store, not …
dylan-conway 42607fa
test: async node:fs ops with Buffer path arguments do not leak the ar…
dylan-conway 3261eb4
Merge branch 'main' into claude/pathlike-unpin-gc-sweep
dylan-conway 061dfaf
[autofix.ci] apply automated fixes
autofix-ci[bot] b5b885e
retainPinnedArrayBuffer: refuse a detached ArrayBuffer; steadier leak…
dylan-conway 5f7aa2e
test: build the >1000-byte Buffer path by concatenation so join() can…
dylan-conway 541e19c
Don't clone the store's PathLike on the pool thread when opening a fi…
dylan-conway 494454e
test: build repeated strings with Buffer.alloc().toString() (repeat()…
dylan-conway bbaaadf
test: don't pad the Buffer path past MAX_PATH on Windows
dylan-conway 76b4e0e
PinnedArrayBuffer: release on the owning VM's thread, wherever it is …
dylan-conway 76682f9
[autofix.ci] apply automated fixes
autofix-ci[bot] 5eff2f7
spawn: a file-blob stdio option owns its path bytes
dylan-conway 2b73b7f
VmHandle::is_current_thread compares handle identity; CopyFile keeps …
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
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.