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>
This commit is contained in:
Angus Gratton 2023-09-05 11:05:47 +10:00 committed by Damien George
parent 26160e8ed5
commit 92f379cce4
1 changed files with 3 additions and 3 deletions

View File

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