<i>Inconsistent locking during zipfs initialization</i> status still Open with 3 other changes
by
.
D 2025-10-07T14:11:25.755
J icomment Since\sit's\sa\sonce-per-process\ssetup,\sthe\sflag\sis\slikely\sset\sto\strue\sbefore\sthe\sprocess\slaunches\sany\smore\sthreads\s(that\sread\sthe\svfs).\sThe\sdifferent\slocks\smay\sbe\sfor\sthe\scode\sthat\sfollows.\r\n\r\nIf\smy\sthoughts\sare\scorrect,\smoving\sthe\scall\sto\s`ZipfsSetup()`\soutside\sthe\slock\s(and\shaving\sit\srecheck\sthe\sflag\sinside\sthe\scall\sas\swell\sas\susing\sits\sown\slock,\sfor\sdouble-checked\slocking)\sis\slikely\sto\sbe\sthe\soptimal\sapproach;\sthe\scase\swhen\stwo\sthreads\svie\sof\sthe\snew\slock\sis\sexpected\sto\sbe\svery\srare.\r\n\r\nThe\smemory\sbarrier\sdue\sto\sthe\sfunction\scall\sis\sprobably\senough.
J login dkf
J mimetype text/x-markdown
K ce32712f83f0d30051adb6a53e11f9e338a9944f
U dkf
Z a805e1fbf76d66ea224a36c6250251ae