1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Use better data structures (incomplete)

This commit is contained in:
Dmitry Stogov
2014-02-14 17:48:45 +04:00
parent e85790a4d4
commit 17bf59f895
10 changed files with 70 additions and 93 deletions

View File

@@ -63,6 +63,14 @@
(o) = (zend_object*)((((zend_uintptr_t)(n)) << 1) | FREE_BUCKET); \
} while (0)
#define OBJ_RELEASE(obj) do { \
zend_object *_obj = (obj); \
if (--_obj->gc.refcount == 0) { \
zend_objects_store_del(_obj TSRMLS_CC); \
} \
} while (0)
typedef struct _zend_objects_store {
zend_object **object_buckets;
zend_uint top;