Commit 5ede541
committed
Fix phpGH-17868: Cannot allocate memory with tracing JIT on 8.4.4
The generated code tries to initialize the run time cache for even
internal closures, but it should only initialize the run time cache for
user closures. We fix this by adding a check for the function type.
If `func` is known, then we can check the type at code generation time.
Closes phpGH-17869.1 parent ca75ebf commit 5ede541
2 files changed
+17
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8676 | 8676 | | |
8677 | 8677 | | |
8678 | 8678 | | |
| 8679 | + | |
8679 | 8680 | | |
8680 | 8681 | | |
8681 | 8682 | | |
| |||
8713 | 8714 | | |
8714 | 8715 | | |
8715 | 8716 | | |
8716 | | - | |
8717 | | - | |
8718 | | - | |
| 8717 | + | |
| 8718 | + | |
| 8719 | + | |
| 8720 | + | |
| 8721 | + | |
| 8722 | + | |
8719 | 8723 | | |
8720 | | - | |
8721 | | - | |
8722 | | - | |
| 8724 | + | |
| 8725 | + | |
| 8726 | + | |
| 8727 | + | |
| 8728 | + | |
8723 | 8729 | | |
8724 | | - | |
| 8730 | + | |
| 8731 | + | |
| 8732 | + | |
8725 | 8733 | | |
8726 | 8734 | | |
8727 | 8735 | | |
| |||
0 commit comments