Lines Matching refs:ref
48 ZEND_API void ZEND_FASTCALL gc_possible_root(zend_refcounted *ref);
49 ZEND_API void ZEND_FASTCALL gc_remove_from_buffer(zend_refcounted *ref);
84 #define GC_MAY_LEAK(ref) \ argument
85 ((GC_TYPE_INFO(ref) & \
88 static zend_always_inline void gc_check_possible_root(zend_refcounted *ref) in gc_check_possible_root() argument
90 if (EXPECTED(GC_TYPE_INFO(ref) == GC_REFERENCE)) { in gc_check_possible_root()
91 zval *zv = &((zend_reference*)ref)->val; in gc_check_possible_root()
96 ref = Z_COUNTED_P(zv); in gc_check_possible_root()
98 if (UNEXPECTED(GC_MAY_LEAK(ref))) { in gc_check_possible_root()
99 gc_possible_root(ref); in gc_check_possible_root()
103 static zend_always_inline void gc_check_possible_root_no_ref(zend_refcounted *ref) in gc_check_possible_root_no_ref() argument
105 ZEND_ASSERT(GC_TYPE_INFO(ref) != GC_REFERENCE); in gc_check_possible_root_no_ref()
106 if (UNEXPECTED(GC_MAY_LEAK(ref))) { in gc_check_possible_root_no_ref()
107 gc_possible_root(ref); in gc_check_possible_root_no_ref()