Skip to content

Audit all VM code for correct handling of heap references #32

@sin-ack

Description

@sin-ack

Commit b9789d2 introduced a new concept called the "handle set" which makes VM code that references heap objects significantly simpler to write. All code that directly used heap.track has been converted to the new approach; however, code that might currently be silently doing the wrong thing has not been thoroughly audited. All VM code that deals with operating on heap objects should be audited to ensure all heap references are correctly tracked with handle sets. In particular:

  • All primitives (including ones that have already been converted for potential mistakes)
  • runtime/interpreter.zig
  • runtime/Actor.zig
  • runtime/VirtualMachine.zig

This issue can be closed once we're confident that all relevant code correctly tracks heap references (basically any code that calls heap.allocate or calls into code that does, and deals with heap references).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions