Repository navigation
Strong: back bun_jsc::Strong with StrongRootBlock; free AbortSignal.timeout at wrapper GC #35849
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 27 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
1e11d48
timers: root armed wrappers via a segmented table; free AbortSignal.t…
robobun 761cded
timers: root segments as a linked list on ZigGlobalObject; reclaim em…
robobun 1504052
AbortSignal: keep timeout wrapper alive while an any() dependent obse…
robobun f44f4ea
timers: keep timeout wrapper for all observer kinds; survive --isolat…
robobun f9d1f87
AbortSignal: protect this before toJS() in the CommonAbortReason over…
robobun 9241d72
timers: tombstone root_slot in finalize; disarm in the is_timer_done …
robobun be1170c
timers: arm_root uses vm.global so ShadowRealm timers share the per-V…
robobun 585aa62
timers: arm after reschedule in do_refresh; report segment extra memo…
robobun 7f5d48d
test: isolate the refresh() re-root check from module-scope bindings
robobun e8e8e79
test: actually GC between refresh() fires
robobun 5afb514
test: widen the AbortSignal.timeout RSS leak margin
robobun d751816
test: make the refresh() re-root test actually probe the segment slot
robobun 53d93c9
Merge branch 'main' into farm/f99b9100/timer-gc-roots
Jarred-Sumner 43d1705
ci: retrigger
robobun e6ef252
Merge branch 'main' into farm/f99b9100/timer-gc-roots
robobun 0c572ec
JSTimerRootSegment: inline std::array slots; AbortSignal: atomic algo…
robobun ae24e3e
AbortSignal: hasTimeoutObserver() reads one atomic
robobun c52323f
JSTimerRootSegment: shrink capacity so the cell fits in a MarkedBlock
robobun 0ae22a9
AbortSignal: balance m_timeoutObserverCount across markAborted and du…
robobun f87d271
Strong: back bun_jsc::Strong with StrongRootBlock instead of HandleSet
robobun 8043b1a
StrongRootBlock: root from JSVMClientData via a marking constraint; e…
robobun f7c60e6
StrongRootBlock: add an allocation cursor so acquire() is O(1) in the…
robobun c9abf29
StrongRootBlock: inline get/clear on the Rust side via slot-pointer e…
robobun b3ba56c
Sweep stale AbortSignal self-ref/cycle comments in Response/jsc_hooks…
robobun 6dfdb66
Strong: tolerate destroy() off the JS thread and Bun__StrongRef__dele…
robobun 6a1524b
StrongRef: drop the s_clientData thread_local; debug_assert off-threa…
robobun 2c02882
Sweep remaining HandleSet/HandleSlot rationale comments; drop redunda…
robobun dc8e2c3
clippy: ptr_as_ptr + undocumented_unsafe_blocks in Strong.rs
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
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.