| ... | @@ -59,7 +59,7 @@ pub fn SbrkAllocator(comptime sbrk: *const fn (n: usize) usize) type { | ... | @@ -59,7 +59,7 @@ pub fn SbrkAllocator(comptime sbrk: *const fn (n: usize) usize) type { |
| 59 | } | 59 | } |
| 60 | | 60 | |
| 61 | const next_addr = next_addrs[class]; | 61 | const next_addr = next_addrs[class]; |
| 62 | if (next_addr % heap.pageSize == 0) { | 62 | if (next_addr % heap.pageSize() == 0) { |
| 63 | const addr = allocBigPages(1); | 63 | const addr = allocBigPages(1); |
| 64 | if (addr == 0) return null; | 64 | if (addr == 0) return null; |
| 65 | //std.debug.print("allocated fresh slot_size={d} class={d} addr=0x{x}\n", .{ | 65 | //std.debug.print("allocated fresh slot_size={d} class={d} addr=0x{x}\n", .{ |