Skip to content
Tcl Source Code Artifact [f98db08d07]
Login

Artifact [f98db08d07]

Artifact f98db08d0728fa5d4e297c515c94f48bb705c7557504f7d5d4030655228afe70:

Ticket change [f98db08d07] - Ticket [39fed4dae51e4fd7|39fed4dae5] <i>Tcl_PkgRequireEx, Tcl_InitStubs broken in 8.6.9</i> status still Open with 3 other changes by dgp on 2019-03-02 12:18:06.
D 2019-03-02T12:18:06.009
J icomment \r\nTcl\sprovides\sa\snumber\sof\sroutines\sthat\sreturn\sto\sthe\scaller\sa\spointer\sinto\sinternal\sstructs\r\nmanaged\sby\sTcl\sitself.\sThis\sis\sa\sfragile,\sbut\sefficient\sarrangement\sthat\scan\swork\sso\slong\r\nas\sthe\scaller\sis\saware\sof\sthe\slimited\speriod\sof\sreliability\sof\sthe\sreturned\spointer,\sand\smakes\r\ncopies\sof\sanything\sneeded\sbeyond\sthat\stimeframe.\r\n\r\nBefore\sthis\srewrite,\sthe\spointer\sreturned\spointed\sto\sa\spkgPtr->version\sfield\sof\sthe\r\n"Package"\sstruct\sfor\sthe\sprovided\spackage.\sThis\spointer\scould\sbe\sexpected\sto\sbe\r\nreliable\suntil\sthe\snext\s[package\sforget]\sremoves\sthat\sPackage\sfrom\sour\sdatabase\r\nof\spackage\sinformation\sknown\sto\sthe\sinterp.\r\n\r\nAfter\sthe\srewrite,\sthe\spointer\spoints\sinto\sthe\sinterp's\sstring\sresult,\swhich\sis\sonly\r\nreliable\suntil\sthe\snext\sTcl_ResetResult()\scall\son\sthat\sinterp\s--\sa\smuch\sshorter\stime\sframe.\r\nThat's\sa\sdisturbance\sin\sthe\spublic\sinterface\swe\sshould\snot\shave\saccepted.\sEven\sworse\r\nthe\srewrite\smakes\sthe\sTcl_ResetResult()\scalls\sitself,\sinvalidating\sthe\spointer\sbefore\sit\r\nis\seven\sreturned.\r\n\r\nRemoving\sthe\sTcl_ResetResult()\scalls\sis\snot\san\seffective\ssolution.\sTest\sload-10.1\samong\r\nothers\sfails.
J login dgp
J mimetype text/plain
K 39fed4dae51e4fd7f1abf6baf3ba094a072b8beb
U dgp
Z 00db6afce220172a0219376e4f650c72