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 292ea9b commit c0f0c19Copy full SHA for c0f0c19
ext/opcache/ZendAccelerator.c
@@ -896,6 +896,13 @@ static inline void kill_all_lockers(struct flock *mem_usage_check)
896
static inline int accel_is_inactive(void)
897
{
898
#ifdef ZEND_WIN32
899
+ /* on Windows, we don't need kill_all_lockers() because SAPIs
900
+ that work on Windows don't manage child processes (and we
901
+ can't do anything about hanging threads anyway); therefore
902
+ on Windows, we can simply manage this counter with atomics
903
+ instead of flocks (atomics are much faster but they don't
904
+ provide us with the PID of locker processes) */
905
+
906
if (LOCKVAL(mem_usage) == 0) {
907
return SUCCESS;
908
}
0 commit comments