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.
1 parent 26d58c0 commit de8f397Copy full SHA for de8f397
ext/opcache/ZendAccelerator.c
@@ -3411,12 +3411,14 @@ void zend_accel_schedule_restart(zend_accel_restart_reason reason)
3411
HANDLE_UNBLOCK_INTERRUPTIONS();
3412
}
3413
3414
-/* this is needed because on WIN32 lock is not decreased unless ZCG(counted) is set */
+static void accel_deactivate_now()
3415
+{
3416
+ /* this is needed because on WIN32 lock is not decreased unless ZCG(counted) is set */
3417
#ifdef ZEND_WIN32
-#define accel_deactivate_now() ZCG(counted) = true; accel_deactivate_sub()
-#else
3418
-#define accel_deactivate_now() accel_deactivate_sub()
+ ZCG(counted) = true;
3419
#endif
3420
+ accel_deactivate_sub();
3421
+}
3422
3423
/* ensures it is OK to read SHM
3424
if it's not OK (restart in progress) returns FAILURE
0 commit comments