Commit d8e22dd
committed
syntax: tweak the "no stack overflow" test
This test works by spinning up a thread with an atypically small stack
size, parsing a regex into an Ast and then dropping it. We use a small
stack size such that *if the Ast didn't have a custom Drop impl*, then
its default recursive Drop impl would overflow the stack. (If we don't
use a smaller stack size, then the default on some platforms is usually
quite large and might require a much larger Ast to provoke a failure.)
It turns out that the stack size we were using was quite tiny, and too
tiny for some platforms such as FreeBSD. We therefore increase it a
little bit, but not too much.
We do the same for the corresponding test for the custom Drop impl for
Hir.
Fixes #9671 parent a9b2e02 commit d8e22dd
2 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1492 | 1492 | | |
1493 | 1493 | | |
1494 | 1494 | | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
1495 | 1506 | | |
1496 | | - | |
| 1507 | + | |
1497 | 1508 | | |
1498 | 1509 | | |
1499 | 1510 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2286 | 2286 | | |
2287 | 2287 | | |
2288 | 2288 | | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
2289 | 2292 | | |
2290 | | - | |
| 2293 | + | |
2291 | 2294 | | |
2292 | 2295 | | |
2293 | 2296 | | |
| |||
0 commit comments