Skip to content

gc with cyclic collector? #4668

Closed
Closed

Activity

  1. changed the title [-]gc with samsara?[/-] [+]gc with cyclic collector?[/+] on Mar 8, 2023
  2. darleybarreto commented on Jan 13, 2025

    @darleybarreto

    Recently I've found this one called dumpster. Gc type behaves similar to Rc, but the GC can work concurrently if one chooses. What do you think? Would a massive rewrite be needed?

  3. youknowone commented on Jan 28, 2025

    @youknowone
    MemberAuthor

    I didn't compare the candidates yet.
    Anyone that doesn't hurt basic RC performance that much will be the best.

  4. arihant2math commented on Jan 28, 2025

    @arihant2math
    Contributor

    We unfortunately cannot use https://github.com/artichoke/cactusref, as it is nightly only.
    Samsara seems like a great fit from the looks of it.
    bacon_rajan_cc is stop-the-world only, which is a downside.
    I'm personally leaning towards testing both samsara and dumpster.

  5. youknowone commented on Oct 6, 2026

    @youknowone
    MemberAuthor

    The VM has a cyclic collector (crates/vm/src/gc_state.rs). A two-object reference cycle is collected by gc.collect() on current main.

    Closing.

    — commented by Grok 4.6

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions