summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-07-27 15:56:49 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-07-27 18:40:03 +0200
commitd4c30ff99b81588abefbf879524b9eb236a000bd (patch)
tree8a471090343bda22b3226166ca47ad57716b90d2
parent592f70bc46fde19c2a3041f8caaeee5b469b2eee (diff)
downloadphp-git-d4c30ff99b81588abefbf879524b9eb236a000bd.tar.gz
Automatically enable DASM_CHECKS in debug mode
-rw-r--r--ext/opcache/jit/zend_jit.c4
1 files changed, 4 insertions, 0 deletions
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 {