Skip to content

Garbage collection #1550

Answered by mvertes
peter7891 asked this question in Q&A
Discussion options

You must be logged in to vote

Yaegi doesn’t implement escape analysis nor has its own GC. Instead it uses the GC from the Go runtime, because it runs on top of it and all the objects used and generated by the interpreter (through reflect) are already handled. We would need it, of course, if we had to target something else than the Go runtime.

As far as I know, the Go spec doesn't mandate a garbage collector.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mvertes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants