memory.c
Include dependency graph for memory.c:
Functions
-
static void memory_scan_and_copy(HeapFragment *old_fragment, term *mem_start, const term *mem_end, term **new_heap_pos, term *mso_list, bool move)
-
static term memory_shallow_copy_term(HeapFragment *old_fragment, term t, term **new_heap, bool move)
-
static enum MemoryGCResult memory_gc(Context *ctx, size_t new_size, size_t num_roots, term *roots)
-
enum MemoryGCResult memory_init_heap(Heap *heap, size_t size)
-
void memory_init_heap_root_fragment(Heap *heap, HeapFragment *root, size_t size)
-
static inline enum MemoryGCResult memory_heap_alloc_new_fragment(Heap *heap, size_t size)
-
enum MemoryGCResult memory_erl_nif_env_ensure_free(ErlNifEnv *env, size_t size)
-
static size_t next_fibonacci_heap_size(size_t size)
-
enum MemoryGCResult memory_ensure_free_with_roots(Context *c, size_t size, size_t num_roots, term *roots, enum MemoryAllocMode alloc_mode)
- static inline HOT_FUNC bool memory_heap_fragment_contains_pointer (HeapFragment *old_fragment, term *ptr)
-
void memory_heap_append_fragment(Heap *heap, HeapFragment *fragment, term mso_list)
-
void memory_sweep_mso_list(term mso_list, GlobalContext *global)