summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/json_loads_float.py
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-10-24 13:28:37 +1100
committerDamien George <damien@micropython.org>2025-05-02 17:24:16 +1000
commit70ed3151933635429a66937bae2701958b6b47dd (patch)
treee343ac6e846e509dc7e4157a001136e78f55448e /tests/extmod/json_loads_float.py
parentbee1fd5e7887d48ad2b217f5c4746f6b518f3fd8 (diff)
downloadmicropython-70ed3151933635429a66937bae2701958b6b47dd.tar.gz
micropython-70ed3151933635429a66937bae2701958b6b47dd.zip
py/malloc: Add mutex for tracked allocations.
Fixes thread safety issue that could cause memory corruption on ports with (MICROPY_PY_THREAD && !MICROPY_PY_THREAD_GIL) - currently only rp2 and unix have this configuration. Adds unit test for TLS sockets that exercises this code path. I wasn't able to make this fail on rp2, the race condition window is pretty narrow and may not have a direct impact on a quiet system. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'tests/extmod/json_loads_float.py')
0 files changed, 0 insertions, 0 deletions