Lines Matching refs:persistent

134 static zend_always_inline zend_string *zend_string_alloc(size_t len, int persistent)  in zend_string_alloc()  argument
136 …nd_string *ret = (zend_string *)pemalloc(ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_alloc()
139 GC_TYPE_INFO(ret) = IS_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << GC_FLAGS_SHIFT); in zend_string_alloc()
145 …end_always_inline zend_string *zend_string_safe_alloc(size_t n, size_t m, size_t l, int persistent) in zend_string_safe_alloc() argument
147 … *ret = (zend_string *)safe_pemalloc(n, m, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(l)), persistent); in zend_string_safe_alloc()
150 GC_TYPE_INFO(ret) = IS_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << GC_FLAGS_SHIFT); in zend_string_safe_alloc()
156 static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, int persistent) in zend_string_init() argument
158 zend_string *ret = zend_string_alloc(len, persistent); in zend_string_init()
173 static zend_always_inline zend_string *zend_string_dup(zend_string *s, int persistent) in zend_string_dup() argument
178 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_dup()
182 …tic zend_always_inline zend_string *zend_string_realloc(zend_string *s, size_t len, int persistent) in zend_string_realloc() argument
188 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_realloc()
194 ret = zend_string_alloc(len, persistent); in zend_string_realloc()
202 …atic zend_always_inline zend_string *zend_string_extend(zend_string *s, size_t len, int persistent) in zend_string_extend() argument
209 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_extend()
215 ret = zend_string_alloc(len, persistent); in zend_string_extend()
223 …ic zend_always_inline zend_string *zend_string_truncate(zend_string *s, size_t len, int persistent) in zend_string_truncate() argument
230 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_truncate()
236 ret = zend_string_alloc(len, persistent); in zend_string_truncate()
244 …zend_string *zend_string_safe_realloc(zend_string *s, size_t n, size_t m, size_t l, int persistent) in zend_string_safe_realloc() argument
250 …t = (zend_string *)safe_perealloc(s, n, m, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(l)), persistent); in zend_string_safe_realloc()
256 ret = zend_string_safe_alloc(n, m, l, persistent); in zend_string_safe_realloc()
289 static zend_always_inline void zend_string_release_ex(zend_string *s, int persistent) in zend_string_release_ex() argument
293 if (persistent) { in zend_string_release_ex()