Skip to content

Weak-key maps keep values alive that reference their own key #30

Closed

Description

@dimensionscape

The weak hash marker marks every value, so a WeakMap entry whose value references its key is never collected.

Upstream PR: HaxeFoundation/hxcpp#1357. Before taking it: the ephemeron pass runs after FindZombies, so a GCDoNotKill object reachable only through a live value is zombified early; the two need iterating together. Run the gc-defines jobs (moving, generational, big blocks).

Activity

  1. added 6 commits that reference this issue on Oct 15, 2026
    be334c4
    b976301
    270c3d5
    2a2851c
    cb91fa4
    2095af1
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions