1 /* 2 * Copyright (c) 2020 Andrew Kelley 3 * 4 * This file is part of zig, which is MIT licensed. 5 * See http://opensource.org/licenses/MIT 6 */ 7 8 #include "mem.hpp" 9 #include "heap.hpp" 10 11 namespace mem { 12 init()13void init() { 14 heap::bootstrap_allocator_state.init("heap::bootstrap_allocator"); 15 heap::c_allocator_state.init("heap::c_allocator"); 16 } 17 deinit()18void deinit() { 19 heap::c_allocator_state.deinit(); 20 heap::bootstrap_allocator_state.deinit(); 21 } 22 23 } // namespace mem 24