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