Skip to content

Investigate other API models for our GC #2631

Description

@jedel1043

Our current GC API uses a lot of reference counting to track the number of roots for an object, but this is necessary by our current API. It would be good to check out some other APIs to see how they handle garbage collection:

Our ideal API:

  • Disallows sharing JsValues between Contexts in the same thread.
  • Makes it really easy to root and unroot values, while being 100% safe to human error.
  • Has compatibility with all GC algorithms, including compaction.
  • Allows having concurrent and/or parallel garbage collectors.
  • Snapshotting support

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-APIChanges related to public APIsA-EnhancementNew feature or requestA-PerformancePerformance related changes and issuesC-GCIssue related to garbage collection

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions