From b5d5338e525154be9ef2eabfa0ec2fd230d517a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 15 Sep 2026 00:18:43 +0800 Subject: [PATCH] Fix memory pressure callback restarting stopped OOM killer timer --- service/oomkiller/timer_darwin.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/service/oomkiller/timer_darwin.go b/service/oomkiller/timer_darwin.go index 7cb1993e..7cac34bc 100644 --- a/service/oomkiller/timer_darwin.go +++ b/service/oomkiller/timer_darwin.go @@ -8,7 +8,10 @@ func (t *adaptiveTimer) notifyPressure() { badCleanup() runtimeDebug.FreeOSMemory() t.access.Lock() - t.startLocked() + if t.timer == nil { + t.access.Unlock() + return + } t.forceMinInterval = true t.pendingPressureBaseline = true t.access.Unlock()