c7404a3ff8
This allows calls to `allocate_memory()` while the VM is running, it will then allocate from the GC heap (unless there is a suitable hole among the supervisor allocations), and when the VM exits and the GC heap is freed, the allocation will be moved to the bottom of the former GC heap and transformed into a proper supervisor allocation. Existing movable allocations will also be moved to defragment the supervisor heap and ensure that the next VM run gets as much memory as possible for the GC heap. By itself this breaks terminalio because it violates the assumption that supervisor_display_move_memory() still has access to an undisturbed heap to copy the tilegrid from. It will work in many cases, but if you're unlucky you will get garbled terminal contents after exiting from the vm run that created the display. This will be fixed in the following commit, which is separate to simplify review. |
||
---|---|---|
.. | ||
asf4@84f56af132 | ||
asf4_conf | ||
bindings/samd | ||
boards | ||
common-hal | ||
freetouch@b6859a349e | ||
modules | ||
peripherals@a7e39c4d01 | ||
sd_mmc | ||
supervisor | ||
tools | ||
.gitattributes | ||
.gitignore | ||
audio_dma.c | ||
audio_dma.h | ||
background.c | ||
background.h | ||
eic_handler.c | ||
eic_handler.h | ||
fatfs_port.c | ||
ld_defines.c | ||
Makefile | ||
mpconfigport.h | ||
mpconfigport.mk | ||
mphalport.c | ||
mphalport.h | ||
qstrdefsport.h | ||
README.rst | ||
reset.c | ||
reset.h | ||
samd_peripherals_config.h | ||
timer_handler.c | ||
timer_handler.h |
SAMD21 and SAMD51 ================== This port supports many development boards that utilize SAMD21 and SAMD51 chips. See https://circuitpython.org/downloads for all supported boards. Building -------- For build instructions see this guide: https://learn.adafruit.com/building-circuitpython/ Debugging --------- For debugging instructions see this guide: https://learn.adafruit.com/debugging-the-samd21-with-gdb Port Specific modules --------------------- .. toctree:: ../../shared-bindings/samd/index