File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2154,6 +2154,8 @@ ZEND_API int zend_gc_collect_cycles(void)
2154
2154
2155
2155
#endif
2156
2156
2157
+ zend_hrtime_t dtor_start_time = 0 ;
2158
+
2157
2159
#ifdef PHP_ASYNC_API
2158
2160
#define GC_COLLECT_TOTAL_COUNT (context->total_count)
2159
2161
#define GC_COLLECT_COUNT (context->count)
@@ -2185,6 +2187,7 @@ ZEND_API int zend_gc_collect_cycles(void)
2185
2187
// so we continue the process from the next element.
2186
2188
GC_G (async_context ).state = GC_ASYNC_STATE_RUNNING ;
2187
2189
GC_G (dtor_idx )++ ;
2190
+ dtor_start_time = zend_hrtime ();
2188
2191
goto continue_calling_destructors ;
2189
2192
} else {
2190
2193
context -> state = GC_ASYNC_STATE_INIT ;
@@ -2318,7 +2321,7 @@ ZEND_API int zend_gc_collect_cycles(void)
2318
2321
}
2319
2322
2320
2323
/* Actually call destructors. */
2321
- zend_hrtime_t dtor_start_time = zend_hrtime ();
2324
+ dtor_start_time = zend_hrtime ();
2322
2325
if (EXPECTED (!EG (active_fiber ))) {
2323
2326
#ifdef PHP_ASYNC_API
2324
2327
continue_calling_destructors :
You can’t perform that action at this time.
0 commit comments