Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Needs discussion / clarification: if cleanup doesn't iterate all weak cells, when will it be called again? #34

@marjakh

Description

@marjakh

Assume the WeakFactory's cleanup function does not retrieve all dirty WeakCells from the iterator. When will the cleanup function be scheduled to be called again?

  1. Immediately (i.e., post another cleanup task immediately to the microtask queue, i.e., let other already scheduled microtasks run and call cleanup again)
  2. Whenever GC finds another dirty WeakCell belonging to the same WeakFactory
  3. Whenever GC finds another dirty WeakCell belonging to any WeakFactory
  4. Something else?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions