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()