Skip to content

Commit e389645

Browse files
authored
Merge pull request #1073 from lightpanda-io/increase_mimalloc_get_rss_buffer
Seems 4K isn't always enough
2 parents 5e6d270 + dfd0dfe commit e389645

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/mimalloc.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ pub fn getRSS() i64 {
4646
// that this requires parsing some unstructured data
4747
@compileError("Only available in debug builds");
4848
}
49-
var buf: [4096]u8 = undefined;
49+
var buf: [1024 * 8]u8 = undefined;
5050
var fba = std.heap.FixedBufferAllocator.init(&buf);
5151
var writer = std.Io.Writer.Allocating.init(fba.allocator());
5252

5353
c.mi_stats_print_out(struct {
5454
fn print(msg: [*c]const u8, data: ?*anyopaque) callconv(.c) void {
5555
const w: *std.Io.Writer = @ptrCast(@alignCast(data.?));
5656
w.writeAll(std.mem.span(msg)) catch |err| {
57-
std.debug.print("Failed to write mimalloc data: {}", .{err});
57+
std.debug.print("Failed to write mimalloc data: {}\n", .{err});
5858
};
5959
}
6060
}.print, &writer.writer);

0 commit comments

Comments
 (0)