summaryrefslogtreecommitdiff
path: root/src/dump.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 12:14:58 -0300
committerGabriel Schneider <[email protected]>2026-11-06 14:56:36 -0300
commit60dd9514c8676e79c625948b5e9d2c6d745e8e87 (patch)
tree9c8009a5f47314ccd6e98b1a001e965ecb0b6444 /src/dump.zig
parent4839c4b037d401393bbc87143d663e115c71242e (diff)
downloadpardes-60dd9514c8676e79c625948b5e9d2c6d745e8e87.tar.gz
pardes-60dd9514c8676e79c625948b5e9d2c6d745e8e87.zip
idioms #3, the allocator a function is handed: Handover.carries opens its dump with the caller's gpa, not the page allocator, and Client.follow and stepGlide lose the gpa they never used
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/dump.zig')
-rw-r--r--src/dump.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dump.zig b/src/dump.zig
index 82b1410f..5c897479 100644
--- a/src/dump.zig
+++ b/src/dump.zig
@@ -483,7 +483,7 @@ pub fn restore(p: *Pardes, bytes: []const u8, from: []const u8) !*Pardes {
pub fn initFromDump(gpa: std.mem.Allocator, opts: Options, bytes: []const u8) !*Pardes {
pardes.tape.startFromEnv();
const taped = pardes.tape.enter(null, .{ .init_from_dump = .{ .opts = opts, .bytes = bytes } });
- const p = (if (Handover.carries(bytes)) carriedWindow(gpa, opts, bytes) else loadAndRevive(gpa, opts, bytes, null, null)) catch |err| {
+ const p = (if (Handover.carries(gpa, bytes)) carriedWindow(gpa, opts, bytes) else loadAndRevive(gpa, opts, bytes, null, null)) catch |err| {
pardes.tape.leave(null, taped);
return err;
};