File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -260,8 +260,6 @@ static ZEND_NORETURN void zend_fiber_trampoline(void)
260
260
static ZEND_NORETURN void zend_fiber_trampoline (boost_context_data data )
261
261
#endif
262
262
{
263
- zend_fiber_context * context = EG (current_fiber_context );
264
-
265
263
/* Initialize transfer struct with a copy of passed data. */
266
264
#ifdef ZEND_FIBER_UCONTEXT
267
265
zend_fiber_transfer transfer = * transfer_data ;
@@ -271,14 +269,16 @@ static ZEND_NORETURN void zend_fiber_trampoline(boost_context_data data)
271
269
272
270
zend_fiber_context * from = transfer .context ;
273
271
272
+ #ifdef __SANITIZE_ADDRESS__
273
+ __sanitizer_finish_switch_fiber (NULL , & from -> stack -> asan_pointer , & from -> stack -> asan_size );
274
+ #endif
275
+
274
276
#ifndef ZEND_FIBER_UCONTEXT
275
277
/* Get the context that resumed us and update its handle to allow for symmetric coroutines. */
276
278
from -> handle = data .handle ;
277
279
#endif
278
280
279
- #ifdef __SANITIZE_ADDRESS__
280
- __sanitizer_finish_switch_fiber (NULL , & from -> stack -> asan_pointer , & from -> stack -> asan_size );
281
- #endif
281
+ zend_fiber_context * context = EG (current_fiber_context );
282
282
283
283
/* Ensure that previous fiber will be cleaned up (needed by symmetric coroutines). */
284
284
if (from -> status == ZEND_FIBER_STATUS_DEAD ) {
You can’t perform that action at this time.
0 commit comments