Lines Matching refs:persistent

142 static zend_always_inline zend_string *zend_string_alloc(size_t len, bool persistent)  in zend_string_alloc()  argument
144 …nd_string *ret = (zend_string *)pemalloc(ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_alloc()
147 GC_TYPE_INFO(ret) = GC_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << GC_FLAGS_SHIFT); in zend_string_alloc()
153 …nd_always_inline zend_string *zend_string_safe_alloc(size_t n, size_t m, size_t l, bool persistent) in zend_string_safe_alloc() argument
155 … *ret = (zend_string *)safe_pemalloc(n, m, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(l)), persistent); in zend_string_safe_alloc()
158 GC_TYPE_INFO(ret) = GC_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << GC_FLAGS_SHIFT); in zend_string_safe_alloc()
164 …atic zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent) in zend_string_init() argument
166 zend_string *ret = zend_string_alloc(len, persistent); in zend_string_init()
192 static zend_always_inline zend_string *zend_string_dup(zend_string *s, bool persistent) in zend_string_dup() argument
197 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_dup()
201 static zend_always_inline zend_string *zend_string_separate(zend_string *s, bool persistent) in zend_string_separate() argument
207 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_separate()
214 …ic zend_always_inline zend_string *zend_string_realloc(zend_string *s, size_t len, bool persistent) in zend_string_realloc() argument
220 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_realloc()
226 ret = zend_string_alloc(len, persistent); in zend_string_realloc()
234 …tic zend_always_inline zend_string *zend_string_extend(zend_string *s, size_t len, bool persistent) in zend_string_extend() argument
241 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_extend()
247 ret = zend_string_alloc(len, persistent); in zend_string_extend()
255 …c zend_always_inline zend_string *zend_string_truncate(zend_string *s, size_t len, bool persistent) in zend_string_truncate() argument
262 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_truncate()
268 ret = zend_string_alloc(len, persistent); in zend_string_truncate()
276 …end_string *zend_string_safe_realloc(zend_string *s, size_t n, size_t m, size_t l, bool persistent) in zend_string_safe_realloc() argument
282 …t = (zend_string *)safe_perealloc(s, n, m, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(l)), persistent); in zend_string_safe_realloc()
288 ret = zend_string_safe_alloc(n, m, l, persistent); in zend_string_safe_realloc()
321 static zend_always_inline void zend_string_release_ex(zend_string *s, bool persistent) in zend_string_release_ex() argument
325 if (persistent) { in zend_string_release_ex()