Skip to content

Commit 0e3d491

Browse files
committed
Set expectation to reduce hot code fragmentation
1 parent a54ee8a commit 0e3d491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_gc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ END_EXTERN_C()
7171

7272
static zend_always_inline void gc_check_possible_root(zend_refcounted *ref)
7373
{
74-
if (GC_TYPE_INFO(ref) == IS_REFERENCE) {
74+
if (EXPECTED(GC_TYPE_INFO(ref) == IS_REFERENCE)) {
7575
zval *zv = &((zend_reference*)ref)->val;
7676

7777
if (!Z_COLLECTABLE_P(zv)) {

0 commit comments

Comments
 (0)