Overview
| Artifact ID: | 4acad39310e3dab38c8369821b8d82ba0352d90c205d173e7471e57f6a3a19e1 |
|---|---|
| Ticket: | ce32712f83f0d30051adb6a53e11f9e338a9944f
Inconsistent locking during zipfs initialization |
| User & Date: | dkf on 2025-10-07 14:11:25 |
Changes
- icomment:
Since it's a once-per-process setup, the flag is likely set to true before the process launches any more threads (that read the vfs). The different locks may be for the code that follows. If my thoughts are correct, moving the call to `ZipfsSetup()` outside the lock (and having it recheck the flag inside the call as well as using its own lock, for double-checked locking) is likely to be the optimal approach; the case when two threads vie of the new lock is expected to be very rare. The memory barrier due to the function call is probably enough.
- login: "dkf"
- mimetype: "text/x-markdown"