Lines Matching refs:block

471 # define ZEND_MM_COOKIE(block) \  argument
472 (((size_t)(block)) ^ _zend_mm_cookie)
473 # define ZEND_MM_SET_COOKIE(block) \ argument
474 (block)->info._cookie = ZEND_MM_COOKIE(block)
475 # define ZEND_MM_CHECK_COOKIE(block) \ argument
476 if (UNEXPECTED((block)->info._cookie != ZEND_MM_COOKIE(block))) { \
480 # define ZEND_MM_SET_COOKIE(block) argument
481 # define ZEND_MM_CHECK_COOKIE(block) argument
554 # define ZEND_MM_SET_THREAD_ID(block) \ argument
555 ((zend_mm_block*)(block))->thread_id = tsrm_thread_id()
556 # define ZEND_MM_BAD_THREAD_ID(block) ((block)->thread_id != tsrm_thread_id()) argument
558 # define ZEND_MM_SET_THREAD_ID(block) argument
559 # define ZEND_MM_BAD_THREAD_ID(block) 0 argument
562 # define ZEND_MM_VALID_PTR(block) \ argument
563 zend_mm_check_ptr(heap, block, 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC)
565 # define ZEND_MM_SET_MAGIC(block, val) do { \ argument
566 (block)->magic = (val); \
569 # define ZEND_MM_CHECK_MAGIC(block, val) do { \ argument
570 if ((block)->magic != (val)) { \
575 # define ZEND_MM_SET_DEBUG_INFO(block, __size, set_valid, set_thread) do { \ argument
576 ((zend_mm_block*)(block))->debug.filename = __zend_filename; \
577 ((zend_mm_block*)(block))->debug.lineno = __zend_lineno; \
578 ((zend_mm_block*)(block))->debug.orig_filename = __zend_orig_filename; \
579 ((zend_mm_block*)(block))->debug.orig_lineno = __zend_orig_lineno; \
580 ZEND_MM_SET_BLOCK_SIZE(block, __size); \
582 ZEND_MM_SET_MAGIC(block, MEM_BLOCK_VALID); \
585 ZEND_MM_SET_THREAD_ID(block); \
593 # define ZEND_MM_SET_MAGIC(block, val) argument
595 # define ZEND_MM_CHECK_MAGIC(block, val) argument
597 # define ZEND_MM_SET_DEBUG_INFO(block, __size, set_valid, set_thread) ZEND_MM_SET_BLOCK_SIZE(block,… argument
604 # define ZEND_MM_CHECK_PROTECTION(block) \ argument
606 if ((block)->debug.start_magic != _mem_block_start_magic || \
607 memcmp(ZEND_MM_END_MAGIC_PTR(block), &_mem_block_end_magic, END_MAGIC_SIZE) != 0) { \
612 # define ZEND_MM_END_MAGIC_PTR(block) \ argument
613 (((char*)(ZEND_MM_DATA_OF(block))) + ((zend_mm_block*)(block))->debug.size)
617 # define ZEND_MM_SET_BLOCK_SIZE(block, __size) do { \ argument
619 ((zend_mm_block*)(block))->debug.size = (__size); \
620 p = ZEND_MM_END_MAGIC_PTR(block); \
621 ((zend_mm_block*)(block))->debug.start_magic = _mem_block_start_magic; \
631 # define ZEND_MM_SET_BLOCK_SIZE(block, _size) \ argument
632 ((zend_mm_block*)(block))->debug.size = (_size)
634 # define ZEND_MM_SET_BLOCK_SIZE(block, _size) argument
637 # define ZEND_MM_CHECK_PROTECTION(block) argument
644 # define ZEND_MM_CHECK_BLOCK_LINKAGE(block) \ argument
645 …if (UNEXPECTED((block)->info._size != ZEND_MM_BLOCK_AT(block, ZEND_MM_FREE_BLOCK_SIZE(block))->inf…
646 UNEXPECTED(!UNEXPECTED(ZEND_MM_IS_FIRST_BLOCK(block)) && \
647 UNEXPECTED(ZEND_MM_PREV_BLOCK(block)->info._size != (block)->info._prev))) { \
650 #define ZEND_MM_CHECK_TREE(block) \ argument
651 if (UNEXPECTED(*((block)->parent) != (block))) { \
655 # define ZEND_MM_CHECK_BLOCK_LINKAGE(block) argument
656 # define ZEND_MM_CHECK_TREE(block) argument