Skip to content

BridgeJS: Fix memory management of SwiftHeapObject#664

Merged
krodak merged 3 commits intomainfrom
yt/fix-heapobj-ownership
Feb 20, 2026
Merged

BridgeJS: Fix memory management of SwiftHeapObject#664
krodak merged 3 commits intomainfrom
yt/fix-heapobj-ownership

Conversation

@kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Feb 19, 2026

bridgeJSLowerParameter and bridgeJSStackPush of _BridgedSwiftHeapObject should +1 refcount because everytime we do those operations, we create wrapper JS instance and they are responsible for -1 for each

Close #661

@kateinoigakukun kateinoigakukun force-pushed the yt/fix-heapobj-ownership branch from f4655ef to afc2088 Compare February 19, 2026 16:01
Copy link
Member

@krodak krodak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tracking this down 🙇🏻

@krodak krodak merged commit 866ba61 into main Feb 20, 2026
12 checks passed
@krodak krodak deleted the yt/fix-heapobj-ownership branch February 20, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky CI: FinalizationRegistry callback crashes during process shutdown

2 participants

Comments