RlimitStack reports the current stack size limit in bytes.
()
| 7 | |
| 8 | // RlimitStack reports the current stack size limit in bytes. |
| 9 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…