Skip to content
Tcl Source Code Artifact [08d87ed52b]
Login

Artifact [08d87ed52b]

Artifact 08d87ed52b32421efe512d8d4734cf6321e2119ab40419bb4eeafa659140e3ac:

Ticket change [08d87ed52b] - Ticket [87b69745be15c281|87b69745be] <i>interp creation resets encoding directory search path</i> status still Open with 3 other changes by sebres on 2025-08-13 18:26:22.
D 2025-08-13T18:26:22.512
J icomment >\sTcl\smutexes\sare\srecursive\sas\sfar\sas\sI\scan\stell.\r\n\r\nYes,\sas\salready\sconfirmed\sin\sthe\score\smailing\slist,\syou\sare\sright\sand\sthis\sis\sindeed\sreentrant\snow\s(changed\sin\s8.7+\safter\sTIP#509).\r\n\r\n>\sI\sdo\snot\slike\sthe\scomparison\sof\ssystemEncoding\soutside\sof\sholding\sthe\smutex.\r\n\r\nAnd\sif\sit\sis\scompared\sby\slocked\smutex\swhat\swould\sit\schange?<br/>\r\nThe\sissue\sis,\sas\salready\ssaid,\sjust\sa\sconceptual\sbug\sand\ssimply\sa\stiming\sthing\sand\smay\shappen\swith\sand\swithout\slock.\sIn\sparticular\sof\smentioned\scode,\smutex\soutside\sof\sthe\scomparison\schanges\sabsolutely\snothing\sand\sin\sbest\scase\smay\sonly\savoid\ssome\sunneeded\sepoch\schange,\showever\sonly\sif\ssystem\sencoding\schanges\scontinuously\sacross\sseveral\sthreads.\sBut\sthen,\sas\salready\ssaid,\syou'd\shave\scompletely\sdifferent\sissues\s(ending\swith\sSF).\r\n\r\nThe\sonly\ssolution\swould\sbe\ssomething\slike\sI\sprovided\sin\s[f2ff05fc84],\sor\ssystem\sencoding\sstored\sper\sthread\s(TSV).\r\n\r\n>\sGlobals\sshared\sbetween\sthreads\sshould\sbe\saccessed\sunder\sa\slock\seven\swhen\sreading.\s\r\n\r\nNo.\sIn\sthis\sparticular\scomparison\sit\sdoesn't\schange\ssomething,\ssince\sit\sis\sonly\sprotection\sagainst\sincrease\sof\sFS\sepoch\sand\sfunction\ssimply\sreturns\sif\sit\sis\sequal\snow.\sFew\snanoseconds\slater\sor\searlier\sit\smay\sbe\sdifferent\s(no\smatter\swith\sor\swithout\slock).\sWith\salready\smentioned\sconsequences.\r\n\r\nFeel\sfree\sto\srevert\sit\s(mark\smay\schange\sas\smistake\sbranch\sand\sreset\stags\sto\sprevious\scommit),\sif\syou\sdon't\slike\sit.\sBut\sI\sguess\sin\scase\sof\spossible\srace\scondition,\syou\soverestimate\sthe\slock\sprotection\shere\sand\sunderestimate\sthe\sconsequences\sof\sconceptual\sbug\s(the\sissue\sby\s"wrong"\sdesign\s-\sthread-safety\sof\sthe\ssystem\sencoding).
J login sebres
J mimetype text/x-markdown
K 87b69745be15c2816574ec415dfe2c3c407cc5d6
U sebres
Z a0ad1e81a5747abc8ef0d2ba7b736825