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

Treewalk interpreter should have a GC #26

Open
mariosangiorgio opened this issue Nov 2, 2018 · 0 comments
Open

Treewalk interpreter should have a GC #26

mariosangiorgio opened this issue Nov 2, 2018 · 0 comments

Comments

@mariosangiorgio
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant