From 472f3e89a61ec51218cefe65305ec6f0a0d95fbf Mon Sep 17 00:00:00 2001 From: Taylan Kammer Date: Fri, 28 Feb 2025 14:38:57 +0100 Subject: update --- src/libzisp/gc.zig | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/libzisp/gc.zig') diff --git a/src/libzisp/gc.zig b/src/libzisp/gc.zig index 819fa0b..6704102 100644 --- a/src/libzisp/gc.zig +++ b/src/libzisp/gc.zig @@ -1,15 +1,12 @@ const std = @import("std"); -const Value = @import("value.zig").Value; +const value = @import("value.zig"); + +const Hval = value.Hval; var _gpa: std.heap.GeneralPurposeAllocator(.{}) = .init; const gpa = _gpa.allocator(); -pub const Bucket = packed union { - bits: u64, - value: Value, -}; - -pub fn alloc(count: usize) []Bucket { - return gpa.alloc(Bucket, count) catch @panic("OOM"); +pub fn alloc(count: usize) []Hval { + return gpa.alloc(Hval, count) catch @panic("OOM"); } -- cgit v1.2.3