Files
sing-box-extended-mirror/service/oomkiller/timer_darwin.go
T
2026-08-30 17:41:43 +08:00

16 lines
280 B
Go

//go:build darwin && cgo
package oomkiller
import runtimeDebug "runtime/debug"
func (t *adaptiveTimer) notifyPressure() {
runtimeDebug.FreeOSMemory()
t.access.Lock()
t.startLocked()
t.forceMinInterval = true
t.pendingPressureBaseline = true
t.access.Unlock()
t.poll()
}