Skip to content
Tcl Source Code Artifact [5668c45590]
Login

Artifact [5668c45590]

Artifact 5668c4559001099e9a0ded8b76a6d2646c39761bd6eb56bdcee68d370ed3a49e:

Ticket change [5668c45590] - Ticket [9a2351225c77fb4a|9a2351225c] <i>32-bit build broken (test lseq-bug-54329e39c7 fails)</i> status still Open with 3 other changes by dkf on 2025-06-04 13:52:58.
D 2025-06-04T13:52:58.061
J icomment Looking\sat\swhat\sthe\sfailing\stest\sdoes,\sreworking\sto\suse\s`memory\sinfo`\sis\sprobably\sthe\sbest\soption\sanyway.\sThe\stest\sis\slooking\sto\sverify\sthat\s`foreach`\sdoesn't\sforce\san\sarithmetic\sseries\sobject\sto\sfully\sinstantiate...\swhich\sis\sgood,\sbut\sit's\sdoing\sit\sby\susing\sa\sproxy\smeasure\sthat\scould\sbe\sconfounded\sby\sother\seffects,\sto\swhich\sit\sthus\sbecomes\svery\ssensitive.\sThe\sfact\sthat\sit's\susing\s`[tcl::build-info\spurify]`\sas\sa\scondition\sto\smake\sthe\stest\smeaningless\sis\sa\ssign\sthat\sthings\sare\snot\shealthy.\r\n\r\n----\r\n\r\nThe\sproof\sthat\sthere's\snothing\sbad\shappening\sin\sthe\sinteraction\sbetween\s`foreach`\sand\s`lseq`\sis\sin\sthis\s(with\s`p1`\sand\s`p2`\spre-declared/executed\sto\sensure\sthe\sbytecode's\salready\sthere):\r\n\r\n```\r\n%\sproc\sp1\sl\s{foreach\sx\s$l\s{}}\r\n%\sproc\sp2\sl\s{foreach\sx\s[list\s0\s{*}$l]\s{}}\r\n%\sp1\s1\r\n%\sp2\s1\r\n%\smemory\sinfo\r\ntotal\smallocs\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s146292\r\ntotal\sfrees\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s133476\r\ncurrent\spackets\sallocated\s\s\s\s\s\s12816\r\ncurrent\sbytes\sallocated\s\s\s\s\s\s\s818998\r\nmaximum\spackets\sallocated\s\s\s\s\s\s13019\r\nmaximum\sbytes\sallocated\s\s\s\s\s\s\s853114\r\n\r\n%\sp1\s[lseq\s1\s1000000];\smemory\sinfo\r\ntotal\smallocs\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s3146737\r\ntotal\sfrees\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s3133899\r\ncurrent\spackets\sallocated\s\s\s\s\s\s12838\r\ncurrent\sbytes\sallocated\s\s\s\s\s\s\s820140\r\nmaximum\spackets\sallocated\s\s\s\s\s\s13019\r\nmaximum\sbytes\sallocated\s\s\s\s\s\s\s853114\r\n\r\n%\sp2\s[lseq\s1\s1000000];\smemory\sinfo\r\ntotal\smallocs\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s6147179\r\ntotal\sfrees\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s6134325\r\ncurrent\spackets\sallocated\s\s\s\s\s\s12854\r\ncurrent\sbytes\sallocated\s\s\s\s\s\s9201511\r\nmaximum\spackets\sallocated\s\s\s\s3012872\r\nmaximum\sbytes\sallocated\s\s\s\s141202167\r\n\r\n```\r\nNotably,\sthe\sexpansion\sof\sthe\ssequence\sto\smake\sa\sstandard\slist\s(plus\sone\selement)\sresults\sin\sa\svastly\shigher\speak\smemory\susage,\sas\sexpected.\r\n\r\nAnd\sI'm\sconcerned\sthat\sthere's\sso\smuch\smemory\sstill\sallocated\sin\sthis\scase.\sThere\sappears\sto\sbe\sa\sleak!
J login dkf
J mimetype text/x-markdown
K 9a2351225c77fb4a90cf23ade237414b4f199361
U dkf
Z 0f15fdec9b5f04637b1b748d9469d1a6