sing-box/service/oomkiller/badcleanup.go
2026-06-08 08:51:45 +08:00

19 lines
367 B
Go

//go:build badlinkname
package oomkiller
import (
"sync"
_ "unsafe"
)
//go:linkname jsonFieldCache json.fieldCache
var jsonFieldCache sync.Map
//go:linkname contextJSONFieldCache github.com/sagernet/sing/common/json/internal/contextjson.fieldCache
var contextJSONFieldCache sync.Map
func badCleanup() {
jsonFieldCache.Clear()
contextJSONFieldCache.Clear()
}