Skip to content

refactor: add 'gc lifetime to core gc types#5446

Open
shruti2522 wants to merge 1 commit into
boa-dev:dev/oscars-gcfrom
shruti2522:integration-2
Open

refactor: add 'gc lifetime to core gc types#5446
shruti2522 wants to merge 1 commit into
boa-dev:dev/oscars-gcfrom
shruti2522:integration-2

Conversation

@shruti2522

@shruti2522 shruti2522 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

adding the 'gc lifetime to core boa_gc types (like Gc, GcErased, WeakMap) to make sure Gc pointers are safely tied to the lifetime of the arena they belong to.

to keep this PR small and easy to review, I've used a temporary 'static lifetime for all the Gc pointers. I'll replace these placeholders with the real arena lifetimes in a follow up PR when updating to MutationContext

@github-actions github-actions Bot added Waiting On Review Waiting on reviews from the maintainers C-Tests Issues and PRs related to the tests. C-Builtins PRs and Issues related to builtins/intrinsics C-VM Issues and PRs related to the Boa Virtual Machine. C-GC Issue related to garbage collection C-Runtime Issues and PRs related to Boa's runtime features and removed Waiting On Review Waiting on reviews from the maintainers labels Jul 23, 2026
@github-actions github-actions Bot added this to the v1.0.0 milestone Jul 23, 2026
@shruti2522
shruti2522 marked this pull request as ready for review July 23, 2026 23:17
@shruti2522
shruti2522 requested a review from a team as a code owner July 23, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Builtins PRs and Issues related to builtins/intrinsics C-GC Issue related to garbage collection C-Runtime Issues and PRs related to Boa's runtime features C-Tests Issues and PRs related to the tests. C-VM Issues and PRs related to the Boa Virtual Machine.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant