Commit ae11b32
Do not set address space limit on macOS
First, macOS no longer respects this resource limit anyways (I was not
able to find a primary source, but see: https://crbug.com/853873).
More critically, our setrlimit invocation results in an exception raised
with EINVAL on macOS. Even in C++, the following fails:
struct rlimit rl;
rl.rlim_cur = 512 * 1024 * 1024;
rl.rlim_max = RLIM_INFINITY;
int result = setrlimit(RLIMIT_AS, &rl);
// result == EINVAL
Resource limits seem to be non-functional on macOS in general; some even
require recompiling Python from source to change the limits:
https://bugs.python.org/issue405181 parent 094306e commit ae11b32
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
0 commit comments