vstr_t line avoiding a sweep from GC in pyexec
Posted: Mon Feb 07, 2022 5:45 pm
Forgive my potential ignorance, I'm trying to understand why doesn't get swept from the garbage collector? I'm making changes elsewhere in the function and I want to make sure I don't break something.
With the non MICROPY_REPL_EVENT_DRIVEN version of I can't see being referenced from a root pointers. As such, why doesn't it get cleaned by the garbage collector?
In the event_driven version it is referenced:
Thanks -- I wanted to check before I introduced a bug!
Code: Select all
vstr_t line
With the non MICROPY_REPL_EVENT_DRIVEN version of
Code: Select all
pyexec_friendly_repl
Code: Select all
vstr_t line
In the event_driven version it is referenced:
Code: Select all
MP_STATE_VM(repl_line) = vstr_new(32);