com php-src: Automatically enable DASM_CHECKS in debug mode: ext/opcache/jit/zend_jit.c
| From: | Nikita Popov | Date: | Mon, 27 Jul 2020 16:40:03 +0000 |
| Subject: | com php-src: Automatically enable DASM_CHECKS in debug mode: ext/opcache/jit/zend_jit.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112389@lists.php.net to get a copy of this message | ||
Commit: d4c30ff99b81588abefbf879524b9eb236a000bd
Author: Nikita Popov <nikita.ppv@gmail.com> Mon, 27 Jul 2020 15:56:49 +0200
Parents: 592f70bc46fde19c2a3041f8caaeee5b469b2eee
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d4c30ff99b81588abefbf879524b9eb236a000bd
Log:
Automatically enable DASM_CHECKS in debug mode
Changed paths:
M ext/opcache/jit/zend_jit.c
Diff:
diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c
index 48647be057..4e7929662a 100644
--- a/ext/opcache/jit/zend_jit.c
+++ b/ext/opcache/jit/zend_jit.c
@@ -73,6 +73,10 @@ zend_jit_globals jit_globals;
#define DASM_M_FREE(ctx, p, sz) efree(p)
+#if ZEND_DEBUG
+# define DASM_CHECKS 1
+#endif
+
#include "dynasm/dasm_proto.h"
typedef struct _zend_jit_stub {