com php-src: Fixed incorect register allocation in ZTS build: ext/opcache/jit/zend_jit_x86.dasc
| From: | Dmitry Stogov | Date: | Thu, 13 Jun 2019 21:29:22 +0000 |
| Subject: | com php-src: Fixed incorect register allocation in ZTS build: ext/opcache/jit/zend_jit_x86.dasc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106774@lists.php.net to get a copy of this message | ||
Commit: 5883dbcb1883b0e88c43244a72713d907adcb6cd
Author: Dmitry Stogov <dmitry@zend.com> Fri, 14 Jun 2019 00:29:22 +0300
Parents: b994fd81cb9be6fad5c54f33435d6e80ba0f1154
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5883dbcb1883b0e88c43244a72713d907adcb6cd
Log:
Fixed incorect register allocation in ZTS build
Changed paths:
M ext/opcache/jit/zend_jit_x86.dasc
Diff:
diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc
index a400288..4501edb 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -10518,6 +10518,18 @@ static zend_regset zend_jit_get_scratch_regset(zend_op_array *op_array,
zend_ssa
break;
}
+#if ZTS
+ /* %r0 is used to check EG(vm_interrupt) */
+ {
+ uint32_t b = ssa->cfg..map[line];
+
+ if ((ssa->cfg.blocks[b].flags & ZEND_BB_LOOP_HEADER) != 0
+ && ssa->cfg.blocks[b].start == line) {
+ ZEND_REGSET_INCL(regset, ZREG_R0);
+ }
+ }
+#endif
+
return regset;
}