Lines Matching refs:obmalloc
1375 assert(interp->obmalloc != NULL); // otherwise not initialized or freed in get_state()
1376 return interp->obmalloc; in get_state()
1444 OMState *state = interp->obmalloc; in _PyInterpreterState_GetAllocatedBlocks()
1480 if (has_own_state(interp) && interp->obmalloc != NULL) { in _PyInterpreterState_FinalizeAllocatedBlocks()
1483 interp->runtime->obmalloc.interpreter_leaks += leaked; in _PyInterpreterState_FinalizeAllocatedBlocks()
1509 runtime->obmalloc.interpreter_leaks = 0; in _Py_FinalizeAllocatedBlocks()
1558 total += runtime->obmalloc.interpreter_leaks; in get_num_global_allocated_blocks()
1720 int debug_stats = _PyRuntime.obmalloc.dump_debug_stats; in new_arena()
1724 _PyRuntime.obmalloc.dump_debug_stats = debug_stats; in new_arena()
3128 return interp->obmalloc && interp->obmalloc != &obmalloc_state_main; in _PyMem_obmalloc_state_on_heap()
3141 _obmalloc_pools_INIT(interp->obmalloc->pools); in init_obmalloc_pools()
3142 memcpy(&interp->obmalloc->pools.used, temp, sizeof(temp)); in init_obmalloc_pools()
3154 interp->obmalloc = &obmalloc_state_main; in _PyMem_init_obmalloc()
3160 interp->obmalloc = PyMem_RawCalloc(1, sizeof(struct _obmalloc_state)); in _PyMem_init_obmalloc()
3161 if (interp->obmalloc == NULL) { in _PyMem_init_obmalloc()
3176 OMState *state = interp->obmalloc; in free_obmalloc_arenas()