Searched refs:MP_STATE_MEM (Results 1 – 6 of 6) sorted by relevance
130 …MP_STATE_MEM(gc_finaliser_table_start) = MP_STATE_MEM(gc_alloc_table_start) + MP_STATE_MEM(gc_allo… in gc_init()135 MP_STATE_MEM(gc_pool_end) = end; in gc_init()142 memset(MP_STATE_MEM(gc_alloc_table_start), 0, MP_STATE_MEM(gc_alloc_table_byte_len)); in gc_init()178 MP_STATE_MEM(gc_lock_depth)++; in gc_lock()184 MP_STATE_MEM(gc_lock_depth)--; in gc_unlock()267 MP_STATE_MEM(gc_collected) = 0; in gc_sweep()323 MP_STATE_MEM(gc_lock_depth)++; in gc_collect_start()363 MP_STATE_MEM(gc_lock_depth)--; in gc_collect_end()369 MP_STATE_MEM(gc_lock_depth)++; in gc_sweep_all()376 info->total = MP_STATE_MEM(gc_pool_end) - MP_STATE_MEM(gc_pool_start); in gc_info()[all …]
45 …_PEAK() { if (MP_STATE_MEM(current_bytes_allocated) > MP_STATE_MEM(peak_bytes_allocated)) MP_STATE…91 MP_STATE_MEM(total_bytes_allocated) += num_bytes; in m_malloc()92 MP_STATE_MEM(current_bytes_allocated) += num_bytes; in m_malloc()102 MP_STATE_MEM(total_bytes_allocated) += num_bytes; in m_malloc_maybe()117 MP_STATE_MEM(total_bytes_allocated) += num_bytes; in m_malloc_with_finaliser()152 MP_STATE_MEM(total_bytes_allocated) += diff; in m_realloc()153 MP_STATE_MEM(current_bytes_allocated) += diff; in m_realloc()180 MP_STATE_MEM(total_bytes_allocated) += diff; in m_realloc_maybe()212 return MP_STATE_MEM(total_bytes_allocated); in m_get_total_bytes_allocated()216 return MP_STATE_MEM(current_bytes_allocated); in m_get_current_bytes_allocated()[all …]
37 return MP_OBJ_NEW_SMALL_INT(MP_STATE_MEM(gc_collected)); in py_gc_collect()46 MP_STATE_MEM(gc_auto_collect_enabled) = 0; in gc_disable()53 MP_STATE_MEM(gc_auto_collect_enabled) = 1; in gc_enable()59 return mp_obj_new_bool(MP_STATE_MEM(gc_auto_collect_enabled)); in gc_isenabled()82 if (MP_STATE_MEM(gc_alloc_threshold) == (size_t)-1) { in gc_threshold()85 return mp_obj_new_int(MP_STATE_MEM(gc_alloc_threshold) * MICROPY_BYTES_PER_GC_BLOCK); in gc_threshold()89 MP_STATE_MEM(gc_alloc_threshold) = (size_t)-1; in gc_threshold()91 MP_STATE_MEM(gc_alloc_threshold) = val / MICROPY_BYTES_PER_GC_BLOCK; in gc_threshold()
133 return MP_OBJ_NEW_SMALL_INT(MP_STATE_MEM(gc_lock_depth)); in mp_micropython_heap_unlock()139 return MP_OBJ_NEW_SMALL_INT(MP_STATE_MEM(gc_lock_depth)); in mp_micropython_heap_locked()
289 #define MP_STATE_MEM(x) (mp_state_ctx.mem.x) macro
591 if (MP_STATE_MEM(gc_lock_depth) != 0) { in pyexec_friendly_repl()592 MP_STATE_MEM(gc_lock_depth) = 0; in pyexec_friendly_repl()
Completed in 10 milliseconds