summaryrefslogtreecommitdiff
path: root/src/zisp/gc.zig
diff options
context:
space:
mode:
authorTaylan Kammer <taylan.kammer@gmail.com>2026-06-20 22:53:50 +0200
committerTaylan Kammer <taylan.kammer@gmail.com>2026-06-20 22:53:50 +0200
commitb84ed4f563b3536365f7d3cc4d068407e98685b3 (patch)
tree9ab7b18d712db1329b6230cb45520e7c85dc46fd /src/zisp/gc.zig
parentbfaa74b19fc81dbe071d55566a78a8e329237eff (diff)
It's a revolution baby.
Diffstat (limited to 'src/zisp/gc.zig')
-rw-r--r--src/zisp/gc.zig14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/zisp/gc.zig b/src/zisp/gc.zig
index 9267087..b2fcc46 100644
--- a/src/zisp/gc.zig
+++ b/src/zisp/gc.zig
@@ -5,11 +5,11 @@ const Alloc = std.mem.Allocator;
const value = @import("value.zig");
-pub const PairPool = @import("gc/PairPool.zig");
+pub const ListPool = @import("gc/ListPool.zig");
pub const IstrSet = @import("gc/IstrSet.zig");
var main_alloc: Alloc = undefined;
-var main_pair_pool: PairPool = undefined;
+var main_list_pool: ListPool = undefined;
var main_istr_set: IstrSet = undefined;
var init_done = false;
@@ -20,24 +20,24 @@ pub fn init() !void {
const alloc = std.heap.smp_allocator;
initCustom(
alloc,
- try PairPool.init(alloc),
+ try ListPool.init(alloc),
try IstrSet.init(alloc),
);
}
pub fn initCustom(
alloc: Alloc,
- pair_pool: PairPool,
+ list_pool: ListPool,
istr_set: IstrSet,
) void {
main_alloc = alloc;
- main_pair_pool = pair_pool;
+ main_list_pool = list_pool;
main_istr_set = istr_set;
}
-pub fn mainPairPool() *PairPool {
+pub fn mainListPool() *ListPool {
init() catch @panic("OOM"); // TODO this is only here for the test suite
- return &main_pair_pool;
+ return &main_list_pool;
}
pub fn mainIstrSet() *IstrSet {