[php-src] PR #23450: JIT: Record fake init calls for subtraces (fixes array_map optimization)
| From: | arnaud-lb | Date: | Tue, 25 Aug 2026 10:53:34 +0000 |
| Subject: | [php-src] PR #23450: JIT: Record fake init calls for subtraces (fixes array_map optimization) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38127@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23450
Author: arnaud-lb
The array_map optimization may emit loops inside an INIT_FCALL-DO_FCALL sequence, which was not
possible before. JIT doesn't expect that and forgets about pending calls when starting a
subtrace for the loop.
Fix by recording fake init calls in zend_jit_trace_subtrace().