php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_gc.h File Reference
#include "zend_hrtime.h"

Go to the source code of this file.

Data Structures

struct  _zend_gc_status
 
struct  zend_get_gc_buffer
 

Macros

#define GC_BENCH   0
 
#define GC_REMOVE_FROM_BUFFER(p)
 
#define GC_MAY_LEAK(ref)
 

Typedefs

typedef struct _zend_gc_status zend_gc_status
 

Functions

ZEND_API void ZEND_FASTCALL gc_possible_root (zend_refcounted *ref)
 
ZEND_API void ZEND_FASTCALL gc_remove_from_buffer (zend_refcounted *ref)
 
ZEND_API bool gc_enable (bool enable)
 
ZEND_API bool gc_enabled (void)
 
ZEND_API bool gc_protect (bool protect)
 
ZEND_API bool gc_protected (void)
 
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)
 
ZEND_API zend_get_gc_bufferzend_get_gc_buffer_create (void)
 
ZEND_API void zend_get_gc_buffer_grow (zend_get_gc_buffer *gc_buffer)
 

Variables

ZEND_API int(* gc_collect_cycles )(void)
 

Macro Definition Documentation

◆ GC_BENCH

#define GC_BENCH   0

Definition at line 26 of file zend_gc.h.

◆ GC_MAY_LEAK

#define GC_MAY_LEAK ( ref)
Value:
((GC_TYPE_INFO(ref) & \
#define GC_INFO_MASK
Definition zend_types.h:738
#define GC_NOT_COLLECTABLE
Definition zend_types.h:778
#define GC_FLAGS_SHIFT
Definition zend_types.h:739
#define GC_TYPE_INFO(p)
Definition zend_types.h:754

Definition at line 84 of file zend_gc.h.

◆ GC_REMOVE_FROM_BUFFER

#define GC_REMOVE_FROM_BUFFER ( p)
Value:
do { \
if (GC_TYPE_INFO(_p) & GC_INFO_MASK) { \
gc_remove_from_buffer(_p); \
} \
} while (0)
p
Definition session.c:1105
struct _zend_refcounted zend_refcounted
Definition zend_types.h:95

Definition at line 77 of file zend_gc.h.

Typedef Documentation

◆ zend_gc_status

Function Documentation

◆ gc_enable()

ZEND_API bool gc_enable ( bool enable)

Definition at line 568 of file zend_gc.c.

◆ gc_enabled()

ZEND_API bool gc_enabled ( void )

Definition at line 202 of file zend_builtin_functions.stub.php.

◆ gc_globals_ctor()

void gc_globals_ctor ( void )

Definition at line 517 of file zend_gc.c.

◆ gc_globals_dtor()

void gc_globals_dtor ( void )

Definition at line 526 of file zend_gc.c.

◆ gc_init()

void gc_init ( void )

Definition at line 2280 of file zend_gc.c.

◆ gc_possible_root()

ZEND_API void ZEND_FASTCALL gc_possible_root ( zend_refcounted * ref)

Definition at line 698 of file zend_gc.c.

◆ gc_protect()

ZEND_API bool gc_protect ( bool protect)

Definition at line 587 of file zend_gc.c.

◆ gc_protected()

ZEND_API bool gc_protected ( void )

Definition at line 594 of file zend_gc.c.

◆ gc_remove_from_buffer()

ZEND_API void ZEND_FASTCALL gc_remove_from_buffer ( zend_refcounted * ref)

Definition at line 773 of file zend_gc.c.

◆ gc_reset()

void gc_reset ( void )

Definition at line 533 of file zend_gc.c.

◆ zend_gc_collect_cycles()

ZEND_API int zend_gc_collect_cycles ( void )

Definition at line 1913 of file zend_gc.c.

◆ zend_gc_get_status()

ZEND_API void zend_gc_get_status ( zend_gc_status * status)

Definition at line 2114 of file zend_gc.c.

◆ zend_get_gc_buffer_create()

ZEND_API zend_get_gc_buffer * zend_get_gc_buffer_create ( void )

Definition at line 2130 of file zend_gc.c.

◆ zend_get_gc_buffer_grow()

ZEND_API void zend_get_gc_buffer_grow ( zend_get_gc_buffer * gc_buffer)

Definition at line 2138 of file zend_gc.c.

Variable Documentation

◆ gc_collect_cycles

ZEND_API int(* gc_collect_cycles) (void) ( void )
extern

Definition at line 245 of file zend_gc.c.