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

some prints

parent 43ca1d36
No related branches found
No related tags found
No related merge requests found
Pipeline #9061 passed
...@@ -165,7 +165,7 @@ STATIC qstr qstr_add(mp_uint_t hash, mp_uint_t len, const char *q_ptr) { ...@@ -165,7 +165,7 @@ STATIC qstr qstr_add(mp_uint_t hash, mp_uint_t len, const char *q_ptr) {
pool->alloc = new_alloc; pool->alloc = new_alloc;
pool->len = 0; pool->len = 0;
MP_STATE_VM(last_pool) = pool; MP_STATE_VM(last_pool) = pool;
DEBUG_printf("QSTR: allocate new pool of size %d\n", MP_STATE_VM(last_pool)->alloc); printf("QSTR: allocate new pool of size %d %p %p\n", (int)MP_STATE_VM(last_pool)->alloc, MP_STATE_VM(last_pool), MP_STATE_VM(qstr_last_chunk));
} }
// add the new qstr // add the new qstr
...@@ -247,6 +247,7 @@ qstr qstr_from_strn(const char *str, size_t len) { ...@@ -247,6 +247,7 @@ qstr qstr_from_strn(const char *str, size_t len) {
} }
MP_STATE_VM(qstr_last_alloc) = al; MP_STATE_VM(qstr_last_alloc) = al;
MP_STATE_VM(qstr_last_used) = 0; MP_STATE_VM(qstr_last_used) = 0;
printf("qstr_last_chunk %p %p\n", MP_STATE_VM(qstr_last_chunk), MP_STATE_VM(last_pool));
} }
// allocate memory from the chunk for this new interned string's data // allocate memory from the chunk for this new interned string's data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment