docs/library/gc: Clarify mem_alloc and mem_free only for Python heap.

As raised in discussions of the ESP32 memory management changes.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
pull/12366/head
Angus Gratton 2023-09-05 11:05:47 +10:00 zatwierdzone przez Damien George
rodzic 26160e8ed5
commit 92f379cce4
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -24,7 +24,7 @@ Functions
.. function:: mem_alloc()
Return the number of bytes of heap RAM that are allocated.
Return the number of bytes of heap RAM that are allocated by Python code.
.. admonition:: Difference to CPython
:class: attention
@ -33,8 +33,8 @@ Functions
.. function:: mem_free()
Return the number of bytes of available heap RAM, or -1 if this amount
is not known.
Return the number of bytes of heap RAM that is available for Python
code to allocate, or -1 if this amount is not known.
.. admonition:: Difference to CPython
:class: attention