We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a185cc8 + 0fb2374 commit a876577Copy full SHA for a876577
Zend/zend_gc.c
@@ -177,7 +177,7 @@
177
#define GC_MAX_UNCOMPRESSED (512 * 1024)
178
#define GC_MAX_BUF_SIZE 0x40000000
179
180
-#define GC_THRESHOLD_DEFAULT 10000
+#define GC_THRESHOLD_DEFAULT (10000 + GC_FIRST_ROOT)
181
#define GC_THRESHOLD_STEP 10000
182
#define GC_THRESHOLD_MAX 1000000000
183
#define GC_THRESHOLD_TRIGGER 100
@@ -501,7 +501,7 @@ ZEND_API zend_bool gc_enable(zend_bool enable)
501
GC_G(buf) = (gc_root_buffer*) pemalloc(sizeof(gc_root_buffer) * GC_DEFAULT_BUF_SIZE, 1);
502
GC_G(buf)[0].ref = NULL;
503
GC_G(buf_size) = GC_DEFAULT_BUF_SIZE;
504
- GC_G(gc_threshold) = GC_THRESHOLD_DEFAULT + GC_FIRST_ROOT;
+ GC_G(gc_threshold) = GC_THRESHOLD_DEFAULT;
505
gc_reset();
506
}
507
return old_enabled;
0 commit comments