File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -507,13 +507,15 @@ static void gc_mark_grey(zend_refcounted *ref)
507
507
while (zv != end ) {
508
508
if (Z_REFCOUNTED_P (zv )) {
509
509
ref = Z_COUNTED_P (zv );
510
+ ZEND_ASSERT (GC_REFCOUNT (ref ) > 0 );
510
511
GC_REFCOUNT (ref )-- ;
511
512
gc_mark_grey (ref );
512
513
}
513
514
zv ++ ;
514
515
}
515
516
if (EXPECTED (!ht )) {
516
517
ref = Z_COUNTED_P (zv );
518
+ ZEND_ASSERT (GC_REFCOUNT (ref ) > 0 );
517
519
GC_REFCOUNT (ref )-- ;
518
520
goto tail_call ;
519
521
}
@@ -530,6 +532,7 @@ static void gc_mark_grey(zend_refcounted *ref)
530
532
} else if (GC_TYPE (ref ) == IS_REFERENCE ) {
531
533
if (Z_REFCOUNTED (((zend_reference * )ref )-> val )) {
532
534
ref = Z_COUNTED (((zend_reference * )ref )-> val );
535
+ ZEND_ASSERT (GC_REFCOUNT (ref ) > 0 );
533
536
GC_REFCOUNT (ref )-- ;
534
537
goto tail_call ;
535
538
}
@@ -559,6 +562,7 @@ static void gc_mark_grey(zend_refcounted *ref)
559
562
}
560
563
if (Z_REFCOUNTED_P (zv )) {
561
564
ref = Z_COUNTED_P (zv );
565
+ ZEND_ASSERT (GC_REFCOUNT (ref ) > 0 );
562
566
GC_REFCOUNT (ref )-- ;
563
567
gc_mark_grey (ref );
564
568
}
@@ -569,6 +573,7 @@ static void gc_mark_grey(zend_refcounted *ref)
569
573
zv = Z_INDIRECT_P (zv );
570
574
}
571
575
ref = Z_COUNTED_P (zv );
576
+ ZEND_ASSERT (GC_REFCOUNT (ref ) > 0 );
572
577
GC_REFCOUNT (ref )-- ;
573
578
goto tail_call ;
574
579
}
You can’t perform that action at this time.
0 commit comments