Skip to content

Commit 8342ecb

Browse files
committed
Do not reset cleared count on GC rerun
1 parent 80197c5 commit 8342ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ ZEND_API int zend_gc_collect_cycles(void)
14981498
gc_scan_roots(&stack);
14991499

15001500
GC_TRACE("Collecting roots");
1501-
count = gc_collect_roots(&gc_flags, &stack);
1501+
count += gc_collect_roots(&gc_flags, &stack);
15021502

15031503
if (!GC_G(num_roots)) {
15041504
/* nothing to free */

0 commit comments

Comments
 (0)