Files
sing-box-extended-mirror/service/oomkiller/timer_darwin.go
T

16 lines
280 B
Go
Raw Normal View History

2026-05-14 22:53:22 +08:00
//go:build darwin && cgo
package oomkiller
2026-07-16 11:58:53 +08:00
import runtimeDebug "runtime/debug"
2026-05-14 22:53:22 +08:00
func (t *adaptiveTimer) notifyPressure() {
2026-07-16 11:58:53 +08:00
runtimeDebug.FreeOSMemory()
2026-05-14 22:53:22 +08:00
t.access.Lock()
t.startLocked()
t.forceMinInterval = true
t.pendingPressureBaseline = true
t.access.Unlock()
t.poll()
}