/opt/cpanel/ea-php84/root/usr/include/php/Zend
NameSizeModeActions
Optimizer/-0755rm
zend.h177580644editdlrm
zend_alloc.h207010644editdlrm
zend_alloc_sizes.h26290644editdlrm
zend_API.h1089560644editdlrm
zend_arena.h60810644editdlrm
zend_ast.h137890644editdlrm
zend_atomic.h130810644editdlrm
zend_attributes.h59130644editdlrm
zend_attributes_arginfo.h145220644editdlrm
zend_bitset.h80830644editdlrm
zend_build.h16260644editdlrm
zend_builtin_functions.h15730644editdlrm
zend_builtin_functions_arginfo.h152290644editdlrm
zend_call_stack.h31000644editdlrm
zend_closures.h23150644editdlrm
zend_closures_arginfo.h20640644editdlrm
zend_compile.h534500644editdlrm
zend_config.h320644editdlrm
zend_constants.h71280644editdlrm
zend_constants_arginfo.h18930644editdlrm
zend_cpuinfo.h95130644editdlrm
zend_dtrace.h20510644editdlrm
zend_enum.h29280644editdlrm
zend_enum_arginfo.h16910644editdlrm
zend_errors.h24160644editdlrm
zend_exceptions.h46480644editdlrm
zend_exceptions_arginfo.h176780644editdlrm
zend_execute.h239640644editdlrm
zend_extensions.h65880644editdlrm
zend_fibers.h54120644editdlrm
zend_fibers_arginfo.h35300644editdlrm
zend_float.h154680644editdlrm
zend_frameless_function.h55180644editdlrm
zend_gc.h46880644editdlrm
zend_gdb.h14200644editdlrm
zend_generators.h76640644editdlrm
zend_generators_arginfo.h28890644editdlrm
zend_globals.h100040644editdlrm
zend_globals_macros.h28410644editdlrm
zend_hash.h515670644editdlrm
zend_highlight.h23210644editdlrm
zend_hrtime.h38420644editdlrm
zend_inheritance.h31860644editdlrm
zend_ini.h121630644editdlrm
zend_ini_parser.h35650644editdlrm
zend_ini_scanner.h19780644editdlrm
zend_ini_scanner_defs.h2060644editdlrm
zend_interfaces.h41180644editdlrm
zend_interfaces_arginfo.h78390644editdlrm
zend_iterators.h39010644editdlrm
zend_language_parser.h109640644editdlrm
zend_language_scanner.h30710644editdlrm
zend_language_scanner_defs.h2650644editdlrm
zend_lazy_objects.h47190644editdlrm
zend_list.h34830644editdlrm
zend_llist.h40320644editdlrm
zend_long.h42270644editdlrm
zend_map_ptr.h35710644editdlrm
zend_max_execution_timer.h14840644editdlrm
zend_mmap.h15120644editdlrm
zend_modules.h48260644editdlrm
zend_multibyte.h49460644editdlrm
zend_multiply.h103020644editdlrm
zend_objects.h19410644editdlrm
zend_objects_API.h56070644editdlrm
zend_object_handlers.h180850644editdlrm
zend_observer.h90360644editdlrm
zend_operators.h340590644editdlrm
zend_portability.h274450644editdlrm
zend_property_hooks.h18240644editdlrm
zend_ptr_stack.h43210644editdlrm
zend_range_check.h30000644editdlrm
zend_signal.h41050644editdlrm
zend_smart_str.h70450644editdlrm
zend_smart_string.h42070644editdlrm
zend_smart_string_public.h12400644editdlrm
zend_smart_str_public.h12220644editdlrm
zend_sort.h15600644editdlrm
zend_stack.h24420644editdlrm
zend_stream.h36410644editdlrm
zend_string.h226930644editdlrm
zend_strtod.h23440644editdlrm
zend_strtod_int.h28740644editdlrm
zend_system_id.h14240644editdlrm
zend_types.h522850644editdlrm
zend_type_info.h45440644editdlrm
zend_variables.h30880644editdlrm
zend_verify_type_inference.h82620644editdlrm
zend_virtual_cwd.h132170644editdlrm
zend_vm.h21120644editdlrm
zend_vm_def.h3028090644editdlrm
zend_vm_execute.h22780090644editdlrm
zend_vm_handlers.h927110644editdlrm
zend_vm_opcodes.h138190644editdlrm
zend_vm_trace_handlers.h32160644editdlrm
zend_vm_trace_lines.h17550644editdlrm
zend_vm_trace_map.h26650644editdlrm
zend_weakrefs.h32260644editdlrm
zend_weakrefs_arginfo.h34400644editdlrm
Edit: /opt/cpanel/ea-php84/root/usr/include/php/Zend/zend_gc.h (4688B)
/* +----------------------------------------------------------------------+ | Zend Engine | +----------------------------------------------------------------------+ | Copyright (c) Zend Technologies Ltd. (http://www.zend.com) | +----------------------------------------------------------------------+ | This source file is subject to version 2.00 of the Zend license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.zend.com/license/2_00.txt. | | If you did not receive a copy of the Zend license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@zend.com so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: David Wang | | Dmitry Stogov | +----------------------------------------------------------------------+ */ #ifndef ZEND_GC_H #define ZEND_GC_H #include "zend_hrtime.h" #ifndef GC_BENCH # define GC_BENCH 0 #endif BEGIN_EXTERN_C() typedef struct _zend_gc_status { bool active; bool gc_protected; bool full; uint32_t runs; uint32_t collected; uint32_t threshold; uint32_t buf_size; uint32_t num_roots; zend_hrtime_t application_time; zend_hrtime_t collector_time; zend_hrtime_t dtor_time; zend_hrtime_t free_time; } zend_gc_status; ZEND_API extern int (*gc_collect_cycles)(void); ZEND_API void ZEND_FASTCALL gc_possible_root(zend_refcounted *ref); ZEND_API void ZEND_FASTCALL gc_remove_from_buffer(zend_refcounted *ref); /* enable/disable automatic start of GC collection */ ZEND_API bool gc_enable(bool enable); ZEND_API bool gc_enabled(void); /* enable/disable possible root additions */ ZEND_API bool gc_protect(bool protect); ZEND_API bool gc_protected(void); #if GC_BENCH void gc_bench_print(void); #endif /* The default implementation of the gc_collect_cycles callback. */ ZEND_API int zend_gc_collect_cycles(void); ZEND_API void zend_gc_get_status(zend_gc_status *status); void gc_init(void); void gc_globals_ctor(void); void gc_globals_dtor(void); void gc_reset(void); #ifdef ZTS size_t zend_gc_globals_size(void); #endif #define GC_REMOVE_FROM_BUFFER(p) do { \ zend_refcounted *_p = (zend_refcounted*)(p); \ if (GC_TYPE_INFO(_p) & GC_INFO_MASK) { \ gc_remove_from_buffer(_p); \ } \ } while (0) #define GC_MAY_LEAK(ref) \ ((GC_TYPE_INFO(ref) & \ (GC_INFO_MASK | (GC_NOT_COLLECTABLE << GC_FLAGS_SHIFT))) == 0) static zend_always_inline void gc_check_possible_root(zend_refcounted *ref) { if (EXPECTED(GC_TYPE_INFO(ref) == GC_REFERENCE)) { zval *zv = &((zend_reference*)ref)->val; if (!Z_COLLECTABLE_P(zv)) { return; } ref = Z_COUNTED_P(zv); } if (UNEXPECTED(GC_MAY_LEAK(ref))) { gc_possible_root(ref); } } static zend_always_inline void gc_check_possible_root_no_ref(zend_refcounted *ref) { ZEND_ASSERT(GC_TYPE_INFO(ref) != GC_REFERENCE); if (UNEXPECTED(GC_MAY_LEAK(ref))) { gc_possible_root(ref); } } /* These APIs can be used to simplify object get_gc implementations * over heterogeneous structures. See zend_generator_get_gc() for * a usage example. */ typedef struct { zval *cur; zval *end; zval *start; } zend_get_gc_buffer; ZEND_API zend_get_gc_buffer *zend_get_gc_buffer_create(void); ZEND_API void zend_get_gc_buffer_grow(zend_get_gc_buffer *gc_buffer); static zend_always_inline void zend_get_gc_buffer_add_zval( zend_get_gc_buffer *gc_buffer, zval *zv) { if (Z_REFCOUNTED_P(zv)) { if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { zend_get_gc_buffer_grow(gc_buffer); } ZVAL_COPY_VALUE(gc_buffer->cur, zv); gc_buffer->cur++; } } static zend_always_inline void zend_get_gc_buffer_add_obj( zend_get_gc_buffer *gc_buffer, zend_object *obj) { if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { zend_get_gc_buffer_grow(gc_buffer); } ZVAL_OBJ(gc_buffer->cur, obj); gc_buffer->cur++; } static zend_always_inline void zend_get_gc_buffer_add_ptr( zend_get_gc_buffer *gc_buffer, void *ptr) { if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { zend_get_gc_buffer_grow(gc_buffer); } ZVAL_PTR(gc_buffer->cur, ptr); gc_buffer->cur++; } static zend_always_inline void zend_get_gc_buffer_use( zend_get_gc_buffer *gc_buffer, zval **table, int *n) { *table = gc_buffer->start; *n = gc_buffer->cur - gc_buffer->start; } END_EXTERN_C() #endif /* ZEND_GC_H */