From: Dmitry Stogov Date: Wed, 10 Jul 2019 15:29:35 +0000 (+0300) Subject: Set expectation to reduce hot code fragmentation X-Git-Tag: php-7.4.0beta1~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e3d4911fae0b0f0adac7f5162780b3809c30456;p=php Set expectation to reduce hot code fragmentation --- diff --git a/Zend/zend_gc.h b/Zend/zend_gc.h index 4baca8fe33..d7b4e1a533 100644 --- a/Zend/zend_gc.h +++ b/Zend/zend_gc.h @@ -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)) {