Commit 9043fa5
committed
gh-75876: Limit the address space of a bigmem test
A test run with -M now runs in a subprocess whose address space is limited
to what it declares plus 512 MiB. A test which uses much more memory than
it declares fails with a MemoryError instead of making the machine swap.
Pass limit_address_space=False for a test which reserves much more address
space than it uses. The two threaded tests in test_interpreters do: glibc
reserves an arena per thread, up to 8 per CPU, and this alone exceeds the
declared size on a machine with many cores.1 parent 66d7c89 commit 9043fa5
4 files changed
Lines changed: 49 additions & 4 deletions
File tree
- Doc/library
- Lib/test
- support
- test_interpreters
- Misc/NEWS.d/next/Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
838 | | - | |
| 838 | + | |
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
852 | 858 | | |
853 | 859 | | |
854 | 860 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1270 | 1270 | | |
1271 | 1271 | | |
1272 | 1272 | | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
1273 | 1294 | | |
1274 | 1295 | | |
1275 | 1296 | | |
| |||
1283 | 1304 | | |
1284 | 1305 | | |
1285 | 1306 | | |
1286 | | - | |
| 1307 | + | |
1287 | 1308 | | |
1288 | 1309 | | |
1289 | 1310 | | |
| |||
1299 | 1320 | | |
1300 | 1321 | | |
1301 | 1322 | | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
1302 | 1329 | | |
1303 | 1330 | | |
1304 | 1331 | | |
| |||
1336 | 1363 | | |
1337 | 1364 | | |
1338 | 1365 | | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
1339 | 1371 | | |
1340 | 1372 | | |
1341 | 1373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments