[php-src] PR #19700: Expose the origin of exit points in zend_jit_dump_exit_info()
| From: | arnaud-lb | Date: | Thu, 04 Sep 2025 10:11:22 +0000 |
| Subject: | [php-src] PR #19700: Expose the origin of exit points in zend_jit_dump_exit_info() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-33071@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19700
Author: arnaud-lb
This shows the filename/lineno where
zend_jit_trace_get_exit_point() was called in
zend_jit_dump_exit_info(), in debug builds:
```
---- TRACE 95 exit info
exit_0: 0025/0000/7 CV2($flags):array CV3($i):int CV4($k):int X6:int
ext/opcache/jit/zend_jit_ir.c:16857
exit_1: 0028/0007/7 CV2($flags):array CV3($i):int CV4($k):int X6:int
ext/opcache/jit/zend_jit_trace.c:5432
exit_2: 0004/0014/7/VM CV1($count):int CV2($flags):array CV3($i):int CV4($k):int X6:int
ext/opcache/jit/zend_jit_ir.c:8516
exit_3: 0008/0021/7/VM CV1($count):int CV2($flags):array CV3($i):int CV4($k):int X6:int
ext/opcache/jit/zend_jit_ir.c:10692
```
This is quite useful, since the dump doesn't generally allows to find where an exit point was
created:
* The opnum refers to the exit opline, not the one that generated the exit point
* A single op may generate multiple exit points