Home
last modified time | relevance | path

Searched refs:GC_REFCOUNT (Results 1 – 25 of 29) sorted by relevance

12

/php-src/Zend/
H A Dzend_string.h153 return GC_REFCOUNT(s); in zend_string_refcount()
235 if (ZSTR_IS_INTERNED(s) || GC_REFCOUNT(s) > 1) { in zend_string_separate()
251 if (EXPECTED(GC_REFCOUNT(s) == 1)) { in zend_string_realloc()
272 if (EXPECTED(GC_REFCOUNT(s) == 1)) { in zend_string_extend()
293 if (EXPECTED(GC_REFCOUNT(s) == 1)) { in zend_string_truncate()
313 if (GC_REFCOUNT(s) == 1) { in zend_string_safe_realloc()
331 ZEND_ASSERT(GC_REFCOUNT(s) <= 1); in zend_string_free()
339 ZEND_ASSERT(GC_REFCOUNT(s) <= 1); in zend_string_efree()
H A Dzend_objects_API.c162 ZEND_ASSERT(GC_REFCOUNT(object) == 0); in zend_objects_store_del()
184 if (GC_REFCOUNT(object) == 0) { in zend_objects_store_del()
H A Dzend_variables.c65 ZEND_ASSERT(GC_REFCOUNT(str) == 0); in zend_string_destroy()
H A Dzend_list.c57 ZEND_ASSERT(GC_REFCOUNT(res) == 0); in zend_list_free()
80 if (GC_REFCOUNT(res) <= 0) { in zend_list_close()
H A Dzend_lazy_objects.c316 if (UNEXPECTED(GC_REFCOUNT(obj->properties) > 1)) { in zend_object_make_lazy()
425 …ZEND_ASSERT((GC_FLAGS(properties_snapshot) & IS_ARRAY_IMMUTABLE) || GC_REFCOUNT(properties_snapsho… in zend_lazy_object_revert_init()
429 …ZEND_ASSERT((GC_FLAGS(properties_snapshot) & IS_ARRAY_IMMUTABLE) || GC_REFCOUNT(properties_snapsho… in zend_lazy_object_revert_init()
H A Dzend_string.c225 if (GC_REFCOUNT(str) > 1) { in zend_new_interned_string_permanent()
263 if (GC_REFCOUNT(str) > 1) { in zend_new_interned_string_request()
H A Dzend_types.h707 #define GC_REFCOUNT(p) zend_gc_refcount(&(p)->gc) macro
845 #define ZSTR_VALID_CE_CACHE(s) EXPECTED((GC_REFCOUNT(s)-1)/sizeof(void *) < CG(map_ptr_last))
848 ((!(validate) || ZSTR_VALID_CE_CACHE(s)) ? GET_CE_CACHE(GC_REFCOUNT(s)) : NULL)
853 SET_CE_CACHE(GC_REFCOUNT(s), ce); \
1367 return GC_REFCOUNT(Z_COUNTED_P(pz)); in zval_refcount_p()
1527 if (UNEXPECTED(GC_REFCOUNT(_arr) > 1)) { \
H A Dzend_gc.c447 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref()
453 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref()
458 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref()
1239 if (GC_REFCOUNT(ref) > 0) { in gc_scan()
H A Dzend_hash.c44 #define HT_ASSERT_RC1(ht) HT_ASSERT(ht, GC_REFCOUNT(ht) == 1)
1730 HT_ASSERT(ht, GC_REFCOUNT(ht) <= 1); in zend_hash_destroy()
1811 HT_ASSERT(ht, GC_REFCOUNT(ht) <= 1); in zend_array_destroy()
2736 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_internal_pointer_reset_ex()
2749 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_internal_pointer_end_ex()
2778 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_move_forward_ex()
2817 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_move_backwards_ex()
H A Dzend_object_handlers.c1059 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_std_write_property()
1369 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_std_get_property_ptr_ptr()
1479 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_std_unset_property()
H A Dzend_execute.c2409 if (!GC_REFCOUNT(ht)) { in zend_undefined_offset_write()
2433 if (!GC_REFCOUNT(ht)) { in zend_undefined_index_write()
2608 if (!GC_REFCOUNT(ht)) { in slow_index_convert_w()
2631 if (!GC_REFCOUNT(ht)) { in slow_index_convert_w()
2649 if (!GC_REFCOUNT(ht)) { in slow_index_convert_w()
3412 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_fetch_property_address()
H A Dzend_vm_execute.h5435 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_CONST_HANDLER()
20158 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_TMP_HANDLER()
22827 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_VAR_HANDLER()
24052 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CONST_HANDLER()
24206 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_TMP_HANDLER()
24360 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_VAR_HANDLER()
24514 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CV_HANDLER()
27043 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_TMPVAR_OP_DATA_CONST_HANDLER()
41142 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_CV_HANDLER()
41730 ZEND_ASSERT(GC_REFCOUNT(ht) == 1); in ZEND_BIND_STATIC_SPEC_CV_HANDLER()
[all …]
H A Dzend_vm_def.h408 !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
2491 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) {
3274 !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
6843 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) {
6951 && UNEXPECTED(GC_REFCOUNT(Z_OBJ_P(array_ptr)->properties) > 1)) {
9045 ZEND_ASSERT(GC_REFCOUNT(ht) == 1);
9094 ZEND_ASSERT(GC_REFCOUNT(ht) == 1);
H A Dzend_execute_API.c1169 ce_cache = GC_REFCOUNT(name); in zend_lookup_class_ex()
/php-src/ext/dom/
H A Dinfra.c36 ZEND_ASSERT(GC_REFCOUNT(input) == 1); in dom_strip_and_collapse_ascii_whitespace()
H A Dxml_serializer.c223 if (GC_REFCOUNT(map->ht) > 1) { in dom_xml_ns_prefix_map_add()
244 } else if (GC_REFCOUNT(list) > 1) { in dom_xml_ns_prefix_map_add()
/php-src/ext/standard/
H A Dvar.c740 && (Z_OBJ_P(var)->properties == NULL || GC_REFCOUNT(Z_OBJ_P(var)->properties) == 1)) { in php_add_var_hash()
1030 …rops, zend_hash_num_elements(&props), /* incomplete_class */ 0, var_hash, GC_REFCOUNT(&props) > 1); in php_var_serialize_class()
1298 …php_var_serialize_nested_data(buf, struc, myht, count, incomplete_class, var_hash, GC_REFCOUNT(myh… in php_var_serialize_intern()
1307 !is_root && (in_rcn_array || GC_REFCOUNT(myht) > 1)); in php_var_serialize_intern()
H A Dhttp_fopen_wrapper.c449 } else if (GC_REFCOUNT(tmp) > 1) { in php_stream_url_wrap_http_ex()
/php-src/ext/opcache/jit/
H A Dzend_jit_helpers.c453 if (!GC_REFCOUNT(ht)) { in zend_jit_undefined_op_helper_write()
900 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_rw_helper()
930 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_rw_helper()
1033 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_w_helper()
1063 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_w_helper()
1733 if (GC_REFCOUNT(Z_STR_P(op1)) == 1) { in zend_jit_fast_assign_concat_helper()
1793 if (GC_REFCOUNT(op1_str) == 1) { in zend_jit_fast_concat_tmp_helper()
/php-src/ext/mysqlnd/
H A Dmysqlnd_vio.c588 ZEND_ASSERT(GC_REFCOUNT(context->res) == 2); in MYSQLND_METHOD()
/php-src/docs/source/core/data-structures/
H A Dreference-counting.rst110 - - ``GC_REFCOUNT[_P]``
/php-src/sapi/phpdbg/
H A Dphpdbg_watch.c199 phpdbg_writeln("Old refcount: %d", GC_REFCOUNT((zend_refcounted *) oldPtr)); in phpdbg_print_watch_diff()
200 phpdbg_writeln("New refcount: %d", GC_REFCOUNT((zend_refcounted *) newPtr)); in phpdbg_print_watch_diff()
/php-src/ext/spl/
H A Dspl_array.c79 if (GC_REFCOUNT(obj->properties) > 1) { in spl_array_get_hash_table_ptr()
458 old_refcount = GC_REFCOUNT(ht); in spl_array_set_refcount()
/php-src/ext/ffi/
H A Dffi.c1804 if (GC_REFCOUNT(&base_cdata->std) == 1) { in zend_ffi_add()
1828 if (GC_REFCOUNT(&base_cdata->std) == 1) { in zend_ffi_add()
3888 if (GC_REFCOUNT(&ctype->std) == 1) { in ZEND_METHOD()
4038 if (GC_REFCOUNT(&ctype->std) == 1) { in ZEND_METHOD()
4126 if (GC_REFCOUNT(&old_cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1) { in ZEND_METHOD()
4224 if (GC_REFCOUNT(&cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1) { in ZEND_METHOD()
4278 if (GC_REFCOUNT(&ctype->std) == 1) { in ZEND_METHOD()
4345 if (GC_REFCOUNT(&cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1 && type->kind == ZEND_FFI_TYPE_POINTER in ZEND_METHOD()
4364 if (GC_REFCOUNT(&cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1) { in ZEND_METHOD()
/php-src/ext/opcache/
H A Dzend_persist.c328 return GC_REFCOUNT(type_name); in zend_accel_get_class_name_map_ptr()

Completed in 355 milliseconds

12