Fix memory pressure callback restarting stopped OOM killer timer

This commit is contained in:
世界
2026-09-15 00:21:10 +08:00
parent 73a4196cb3
commit b5d5338e52
+4 -1
View File
@@ -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()