yggdrasil-go/contrib/mobile/mobile_mem_go120.go

11 lines
149 B
Go
Raw Normal View History

//go:build go1.20
// +build go1.20
package mobile
import "runtime/debug"
func setMemLimitIfPossible() {
debug.SetMemoryLimit(1024 * 1024 * 40)
}