use less aggressive v8 GC

Isolate.lowMemoryNotification runs an aggrissive GC.
Using Isolate.memoryPressureNotification allow a more granular control
of GC.
This commit is contained in:
Pierre Tachoire
2026-01-27 09:39:08 +01:00
parent 451dd0fd64
commit c3ba83ff93
4 changed files with 33 additions and 6 deletions

View File

@@ -100,7 +100,7 @@ pub fn closeSession(self: *Browser) void {
session.deinit();
self.session = null;
_ = self.session_arena.reset(.{ .retain_with_limit = 1 * 1024 * 1024 });
self.env.lowMemoryNotification();
self.env.memoryPressureNotification(.critical);
}
}