mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Refactored GC (incomplete)
This commit is contained in:
parent
2e3e96b24b
commit
b7938ab1bd
27 changed files with 571 additions and 783 deletions
|
@ -31,7 +31,7 @@ ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSR
|
|||
object->gc.refcount = 1;
|
||||
object->gc.u.v.type = IS_OBJECT;
|
||||
object->gc.u.v.flags = 0;
|
||||
object->gc.u.v.buffer = 0;
|
||||
object->gc.u.v.gc_info = 0;
|
||||
object->ce = ce;
|
||||
object->properties = NULL;
|
||||
object->guards = NULL;
|
||||
|
@ -125,6 +125,7 @@ ZEND_API void zend_objects_destroy_object(zend_object *object TSRMLS_DC)
|
|||
ZEND_API void zend_object_free(zend_object *object TSRMLS_DC)
|
||||
{
|
||||
zend_object_std_dtor(object TSRMLS_CC);
|
||||
GC_REMOVE_FROM_BUFFER(object);
|
||||
efree(object);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue