Garbage collection
#1550
-
Does this thing have a GC? |
Beta Was this translation helpful? Give feedback.
Answered by
mvertes
May 6, 2023
Replies: 1 comment
-
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 As far as I know, the Go spec doesn't mandate a garbage collector. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mvertes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.