Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Treewalk interpreter should have a GC #26

@mariosangiorgio

Description

@mariosangiorgio

jlox gets away with not implementing a GC because it relies on the one from the JVM.

We use ref-counted values which give us almost the behaviour we want except from when there are cycles in the dependency graph. In such cases we're going to leak memory :(

The bytecode-VM implementation will have a GC so it might be a good idea to make it general enough so that it can be ported back to the treewalk interpreter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions