[php-src] PR #18352: Fix GH-18136: tracing JIT XMM clobbering on Windows
| From: | nielsdos | Date: | Fri, 18 Apr 2025 23:48:26 +0000 |
| Subject: | [php-src] PR #18352: Fix GH-18136: tracing JIT XMM clobbering on Windows | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31427@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18352
Author: nielsdos
On win64, xmm6-xmm15 are preserved registers, but the prologues and epilogues of JITted code
don't handle these. The issue occurs when calling into the JIT code again via an internal
handler (like call_user_func). Therefore, we want to save/restore xmm registers upon
entering/leaving execute_ex. Since MSVC x64 does not support inline assembly, we create an assembly
wrapper around the real execute_ex function.
The alternative is to always save/restore these xmm registers into the fixed call frame, but this
causes unnecessary overhead.