Garbage collection and the heap lock
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Garbage collection and the heap lock
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.
Index to my micropython libraries.