Garbage collection and the heap lock

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Garbage collection and the heap lock

Post by pythoncoder » Sun May 17, 2015 8:55 am

If gc.disable() is issued, is there any reason why the heap shouldn't be unlocked? Clearly gc.collect() would need to lock it while it is in progress, but unlocking would enable users who handle GC themselves to write interrupt handlers that use the heap. It would be their responsibility to disable any non-conforming interrupts while gc.collect() runs.
Peter Hinch
Index to my micropython libraries.

Post Reply