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:
parent
26160e8ed5
commit
92f379cce4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue