mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
Reduce memory usage in long-running processes (#14885)
This commit is contained in:
@@ -3146,8 +3146,8 @@ pub fn NewRefCounted(comptime T: type, comptime deinit_fn: ?fn (self: *T) void)
|
||||
const ptr = bun.new(T, t);
|
||||
|
||||
if (Environment.enable_logs) {
|
||||
if (ptr.ref_count != 1) {
|
||||
Output.panic("Expected ref_count to be 1, got {d}", .{ptr.ref_count});
|
||||
if (ptr.ref_count == 0) {
|
||||
Output.panic("Expected ref_count to be > 0, got {d}", .{ptr.ref_count});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user