aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/mem.cpp
blob: 5931c38e6e527c922ff9a3e7d85ea80fd2d878d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2020 Andrew Kelley
 *
 * This file is part of zig, which is MIT licensed.
 * See http://opensource.org/licenses/MIT
 */

#include "mem.hpp"
#include "heap.hpp"

namespace mem {

void init() {
    heap::bootstrap_allocator_state.init("heap::bootstrap_allocator");
    heap::c_allocator_state.init("heap::c_allocator");
}

void deinit() {
    heap::c_allocator_state.deinit();
    heap::bootstrap_allocator_state.deinit();
}

} // namespace mem