You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ContainerLoader: make atomic write robust against transient Windows file locks
On Windows, rename() over an existing cached container file intermittently fails
with "Access is denied" when the target is momentarily locked by another process
(antivirus scanning the freshly written file, or a memory-mapped opcache handle).
Unlike POSIX, the replace is not atomic against open handles.
Extracts the tmp-write + rename into atomicWrite(), which now drops the target's
opcache handle before renaming and, on Windows only, retries the rename a few
times with a short backoff. On other platforms behavior is unchanged — a single
rename failure still throws immediately. Fixes flaky ContainerLoader.hotReload.
0 commit comments