Skip to content

Commit 4a095a0

Browse files
committed
Resolve CG(map_ptr_base) in disassembler
1 parent 6ecc103 commit 4a095a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/opcache/jit/zend_jit_disasm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,11 @@ static int zend_jit_disasm_init(void)
587587
REGISTER_EG(symbol_table);
588588
REGISTER_EG(jit_trace_num);
589589
#undef REGISTER_EG
590+
#define REGISTER_CG(n) \
591+
zend_jit_disasm_add_symbol("CG("#n")", \
592+
(uint64_t)(uintptr_t)&compiler_globals.n, sizeof(compiler_globals.n))
593+
REGISTER_CG(map_ptr_base);
594+
#undef REGISTER_CG
590595
#endif
591596

592597
/* Register JIT helper functions */

0 commit comments

Comments
 (0)