-
- Downloads
py: Make gc.enable/disable just control auto-GC; alloc is still allowed.
gc.enable/disable are now the same as CPython: they just control whether automatic garbage collection is enabled or not. If disabled, you can still allocate heap memory, and initiate a manual collection.
Showing
- docs/library/gc.rst 6 additions, 7 deletionsdocs/library/gc.rst
- py/gc.c 7 additions, 2 deletionspy/gc.c
- py/gc.h 5 additions, 0 deletionspy/gc.h
- py/malloc.c 1 addition, 0 deletionspy/malloc.c
- py/modgc.c 10 additions, 6 deletionspy/modgc.c
- py/objexcept.c 1 addition, 0 deletionspy/objexcept.c
- py/qstr.c 1 addition, 0 deletionspy/qstr.c
- py/qstrdefs.h 1 addition, 0 deletionspy/qstrdefs.h
- tests/micropython/heapalloc.py 6 additions, 1 deletiontests/micropython/heapalloc.py
- unix/gccollect.c 1 addition, 0 deletionsunix/gccollect.c
Please register or sign in to comment