diff options
Diffstat (limited to 'src/memory.zig')
| -rw-r--r-- | src/memory.zig | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/memory.zig b/src/memory.zig index 676793c2..e3fa4ac9 100644 --- a/src/memory.zig +++ b/src/memory.zig @@ -1,6 +1,5 @@ const std = @import("std"); const builtin = @import("builtin"); -const walk = @import("walk.zig"); const config = @import("pardes_config"); const KiB = 1024; @@ -351,8 +350,6 @@ pub fn freeRaw(allocator: Allocator, items: anytype) void { const E = @typeInfo(@TypeOf(items)).pointer.child; const bytes = std.mem.sliceAsBytes(items); if (bytes.len == 0) return; - // A blob's digest word goes with it (walk.zig). - walk.forget(@intFromPtr(bytes.ptr)); if (pinned(allocator, bytes, .of(E))) return; allocator.rawFree(@constCast(bytes), .of(E), @returnAddress()); } @@ -403,8 +400,6 @@ pub fn unpin(bytes: []const u8) void { } pins_lock.store(false, .release); if (due) |f| { - // A word made for it while it was pinned (walk.makeWords) goes too. - walk.forget(addr); f.allocator.rawFree(@constCast(f.bytes), f.alignment, @returnAddress()); } } |
