mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
Reduce memory usage in long-running processes (#14885)
This commit is contained in:
@@ -55,11 +55,11 @@ pub const KeepAlive = struct {
|
||||
this.status = .inactive;
|
||||
|
||||
if (comptime @TypeOf(event_loop_ctx_) == JSC.EventLoopHandle) {
|
||||
event_loop_ctx_.loop().subActive(1);
|
||||
event_loop_ctx_.loop().unref();
|
||||
return;
|
||||
}
|
||||
const event_loop_ctx = JSC.AbstractVM(event_loop_ctx_);
|
||||
event_loop_ctx.platformEventLoop().subActive(1);
|
||||
event_loop_ctx.platformEventLoop().unref();
|
||||
}
|
||||
|
||||
/// From another thread, Prevent a poll from keeping the process alive.
|
||||
|
||||
Reference in New Issue
Block a user