Lines Matching refs:persistent

111 #define ZSTR_INIT_LITERAL(s, persistent) (zend_string_init((s), strlen(s), (persistent)))  argument
150 static zend_always_inline zend_string *zend_string_alloc(size_t len, bool persistent) in zend_string_alloc() argument
152 …nd_string *ret = (zend_string *)pemalloc(ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_alloc()
155 GC_TYPE_INFO(ret) = GC_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << GC_FLAGS_SHIFT); in zend_string_alloc()
161 …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
163 … *ret = (zend_string *)safe_pemalloc(n, m, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(l)), persistent); in zend_string_safe_alloc()
166 GC_TYPE_INFO(ret) = GC_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << GC_FLAGS_SHIFT); in zend_string_safe_alloc()
172 …atic zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent) in zend_string_init() argument
174 zend_string *ret = zend_string_alloc(len, persistent); in zend_string_init()
200 static zend_always_inline zend_string *zend_string_dup(zend_string *s, bool persistent) in zend_string_dup() argument
205 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_dup()
209 static zend_always_inline zend_string *zend_string_separate(zend_string *s, bool persistent) in zend_string_separate() argument
215 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_separate()
222 …ic zend_always_inline zend_string *zend_string_realloc(zend_string *s, size_t len, bool persistent) in zend_string_realloc() argument
228 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_realloc()
234 ret = zend_string_alloc(len, persistent); in zend_string_realloc()
242 …tic zend_always_inline zend_string *zend_string_extend(zend_string *s, size_t len, bool persistent) in zend_string_extend() argument
249 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_extend()
255 ret = zend_string_alloc(len, persistent); in zend_string_extend()
263 …c zend_always_inline zend_string *zend_string_truncate(zend_string *s, size_t len, bool persistent) in zend_string_truncate() argument
270 ret = (zend_string *)perealloc(s, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persistent); in zend_string_truncate()
276 ret = zend_string_alloc(len, persistent); in zend_string_truncate()
284 …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
290 …t = (zend_string *)safe_perealloc(s, n, m, ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(l)), persistent); in zend_string_safe_realloc()
296 ret = zend_string_safe_alloc(n, m, l, persistent); in zend_string_safe_realloc()
329 static zend_always_inline void zend_string_release_ex(zend_string *s, bool persistent) in zend_string_release_ex() argument
333 if (persistent) { in zend_string_release_ex()