heap - what if it's disabled?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

heap - what if it's disabled?

Post by jickster » Thu Sep 21, 2017 6:16 pm

What happens if you disable the heap?
MICROPY_ENABLE_GC

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: heap - what if it's disabled?

Post by dhylands » Fri Sep 22, 2017 3:00 am

That doesn't disable the heap, it disables the garbage collector.

If you disable the garbage collector, then you run out of memory and there's no way to recover.

That particular option is probably only useful for debugging some of the heap functions.

Post Reply