]> granicus.if.org Git - php/commitdiff
Set expectation to reduce hot code fragmentation
authorDmitry Stogov <dmitry@zend.com>
Wed, 10 Jul 2019 15:29:35 +0000 (18:29 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 10 Jul 2019 15:29:35 +0000 (18:29 +0300)
Zend/zend_gc.h

index 4baca8fe33966648eebc0066818e483e4803436f..d7b4e1a533eff3271dba7762fa8d10a201d59698 100644 (file)
@@ -71,7 +71,7 @@ END_EXTERN_C()
 
 static zend_always_inline void gc_check_possible_root(zend_refcounted *ref)
 {
-       if (GC_TYPE_INFO(ref) == IS_REFERENCE) {
+       if (EXPECTED(GC_TYPE_INFO(ref) == IS_REFERENCE)) {
                zval *zv = &((zend_reference*)ref)->val;
 
                if (!Z_COLLECTABLE_P(zv)) {