Commit c78f853
authored
Fix TryEnsureSufficientExecutionStack with interpreter (#122248)
The ReflectionInvocation::TryEnsureSufficientExecutionStack was not
taking into account the fact that with interpreter enabled, the code can
be executed either by the interpreter or it can be AOTed. The
interpreter has its own stack with its own limit.
3 libraries tests suites were failing due to this problem.
As a best effort fix, this change adds check for the interpreter stack
too and the method returns true only if there is enough space on both
real and the interpreter stack, as it is not possible to decide which of
them will be used.1 parent 50a3154 commit c78f853
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
1362 | 1364 | | |
1363 | 1365 | | |
1364 | 1366 | | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
1365 | 1384 | | |
1366 | 1385 | | |
1367 | 1386 | | |
| |||
0 commit comments