Skip to content
Snippets Groups Projects
Verified Commit 0e32b6cc authored by dos's avatar dos
Browse files

gc collect

parent 4f88aeaa
No related branches found
No related tags found
No related merge requests found
Pipeline #9063 passed
...@@ -137,6 +137,7 @@ STATIC const qstr_pool_t *find_qstr(qstr *q) { ...@@ -137,6 +137,7 @@ STATIC const qstr_pool_t *find_qstr(qstr *q) {
// qstr_mutex must be taken while in this function // qstr_mutex must be taken while in this function
STATIC qstr qstr_add(mp_uint_t hash, mp_uint_t len, const char *q_ptr) { STATIC qstr qstr_add(mp_uint_t hash, mp_uint_t len, const char *q_ptr) {
DEBUG_printf("QSTR: add hash=%d len=%d data=%.*s\n", hash, len, len, q_ptr); DEBUG_printf("QSTR: add hash=%d len=%d data=%.*s\n", hash, len, len, q_ptr);
gc_collect();
// make sure we have room in the pool for a new qstr // make sure we have room in the pool for a new qstr
if (MP_STATE_VM(last_pool)->len >= MP_STATE_VM(last_pool)->alloc) { if (MP_STATE_VM(last_pool)->len >= MP_STATE_VM(last_pool)->alloc) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment