From d4c30ff99b81588abefbf879524b9eb236a000bd Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 27 Jul 2020 15:56:49 +0200 Subject: [PATCH] Automatically enable DASM_CHECKS in debug mode --- ext/opcache/jit/zend_jit.c | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- 2.40.0