mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-17 13:50:27 +00:00
16 lines
280 B
Go
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()
|
|
}
|