Lines Matching refs:persistent

135 #define ZSTR_INIT_LITERAL(s, persistent) (zend_string_init((s), strlen(s), (persistent)))  argument
174 static zend_always_inline zend_string *zend_string_alloc(size_t len, bool persistent) in zend_string_alloc() argument
176 …nd_string *ret = (zend_string *)pemalloc(ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_alloc()
179 GC_TYPE_INFO(ret) = GC_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << GC_FLAGS_SHIFT); in zend_string_alloc()
185 …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
187 … *ret = (zend_string *)safe_pemalloc(n, m, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(l)), persistent); in zend_string_safe_alloc()
190 GC_TYPE_INFO(ret) = GC_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << GC_FLAGS_SHIFT); in zend_string_safe_alloc()
196 …atic zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent) in zend_string_init() argument
198 zend_string *ret = zend_string_alloc(len, persistent); in zend_string_init()
224 static zend_always_inline zend_string *zend_string_dup(zend_string *s, bool persistent) in zend_string_dup() argument
229 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_dup()
233 static zend_always_inline zend_string *zend_string_separate(zend_string *s, bool persistent) in zend_string_separate() argument
239 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_separate()
246 …ic zend_always_inline zend_string *zend_string_realloc(zend_string *s, size_t len, bool persistent) in zend_string_realloc() argument
252 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_realloc()
258 ret = zend_string_alloc(len, persistent); in zend_string_realloc()
266 …tic zend_always_inline zend_string *zend_string_extend(zend_string *s, size_t len, bool persistent) in zend_string_extend() argument
273 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_extend()
279 ret = zend_string_alloc(len, persistent); in zend_string_extend()
287 …c zend_always_inline zend_string *zend_string_truncate(zend_string *s, size_t len, bool persistent) in zend_string_truncate() argument
294 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_truncate()
300 ret = zend_string_alloc(len, persistent); in zend_string_truncate()
308 …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
314 …t = (zend_string *)safe_perealloc(s, n, m, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(l)), persistent); in zend_string_safe_realloc()
320 ret = zend_string_safe_alloc(n, m, l, persistent); in zend_string_safe_realloc()
353 static zend_always_inline void zend_string_release_ex(zend_string *s, bool persistent) in zend_string_release_ex() argument
357 if (persistent) { in zend_string_release_ex()