Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultLimit ¶
func SetDefaultLimit() bool
SetDefaultLimit applies a soft memory limit for the runtime. If a user defined their own memory limit using the GOMEMLIMIT env var, this function does nothing and the requested limit is honored. As there is no simple portable way to find the available memory in the system - and we may not want to even consume a fixed percentage of that anyway - the limit is hardcoded in defaultLimit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.