MCPcopy
hub / github.com/gopherjs/gopherjs / RlimitStack

Function RlimitStack

internal/sysutil/sysutil.go:9–13  ·  view source on GitHub ↗

RlimitStack reports the current stack size limit in bytes.

()

Source from the content-addressed store, hash-verified

7
8// RlimitStack reports the current stack size limit in bytes.
9func RlimitStack() (cur uint64, err error) {
10 var r unix.Rlimit
11 err = unix.Getrlimit(unix.RLIMIT_STACK, &r)
12 return uint64(r.Cur), err // Type conversion because Cur is one of uint64, int64 depending on unix flavor.
13}

Callers 1

runNodeFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…