This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
0
You've already forked circuitpython
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
b1161f5c4c
circuitpython
/
tests
/
micropython
/
heap_lock.py.exp
6 lines
41 B
Plaintext
Raw
Normal View
History
Unescape
Escape
tests/micropython: Add tests for heap_lock, and emergency exceptions.
2016-10-13 09:32:34 -04:00
MemoryError
tests: Move heap-realloc-while-locked test from C to Python. This test for calling gc_realloc() while the GC is locked can be done in pure Python, so better to do it that way since it can then be tested on more ports.
2018-03-01 18:59:09 -05:00
MemoryError
py/modmicropython: Add heap_locked function to test state of heap. This commit adds micropython.heap_locked() which returns the current lock-depth of the heap, and can be used by Python code to check if the heap is locked or not. This new function is configured via MICROPY_PY_MICROPYTHON_HEAP_LOCKED and is disabled by default. This commit also changes the return value of micropython.heap_unlock() so it returns the current lock-depth as well.
2019-06-28 02:35:51 -04:00
1
MemoryError
tests/micropython: Add tests for heap_lock, and emergency exceptions.
2016-10-13 09:32:34 -04:00
[]
Reference in New Issue
Copy Permalink