mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-30 13:35:19 +00:00
11 lines
149 B
Go
11 lines
149 B
Go
|
//go:build go1.20
|
||
|
// +build go1.20
|
||
|
|
||
|
package mobile
|
||
|
|
||
|
import "runtime/debug"
|
||
|
|
||
|
func setMemLimitIfPossible() {
|
||
|
debug.SetMemoryLimit(1024 * 1024 * 40)
|
||
|
}
|