Home
last modified time | relevance | path

Searched refs:gc_pool_start (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dgc.c85 #define BLOCK_FROM_PTR(ptr) (((byte *)(ptr) - MP_STATE_MEM(gc_pool_start)) / BYTES_PER_BLOCK)
86 #define PTR_FROM_BLOCK(block) (((block) * BYTES_PER_BLOCK + (uintptr_t)MP_STATE_MEM(gc_pool_start)))
134 MP_STATE_MEM(gc_pool_start) = (byte *)end - gc_pool_block_len * BYTES_PER_BLOCK; in gc_init()
138 …assert(MP_STATE_MEM(gc_pool_start) >= MP_STATE_MEM(gc_finaliser_table_start) + gc_finaliser_table_… in gc_init()
173 …t %p, length " UINT_FMT " bytes, " UINT_FMT " blocks\n", MP_STATE_MEM(gc_pool_start), gc_pool_bloc… in gc_init()
195 && ptr >= (void *)MP_STATE_MEM(gc_pool_start) /* must be above start of pool */ \
376 info->total = MP_STATE_MEM(gc_pool_end) - MP_STATE_MEM(gc_pool_start); in gc_info()
522 void *ret_ptr = (void *)(MP_STATE_MEM(gc_pool_start) + start_block * BYTES_PER_BLOCK); in gc_alloc()
815 mp_printf(&mp_plat_print, "GC memory layout; from %p:", MP_STATE_MEM(gc_pool_start)); in gc_dump_alloc_table()
874 void **ptr = (void **)(MP_STATE_MEM(gc_pool_start) + bl * BYTES_PER_BLOCK); in gc_dump_alloc_table()
A Dmpstate.h79 byte *gc_pool_start; member

Completed in 7 milliseconds