<i>proc with more than 2**31 variables</i> status still Open with 3 other changes
by
.
D 2025-04-14T07:57:45.415
J icomment After\sbetter\sfix:\r\n<pre>\r\n$\s./tclsh\r\n%\sproc\sxx\s[lrepeat\s0x100000000\sx]\s{}\r\ntotal\smallocs\s\s\s\s\s\s\s\s\s\s\s\s\s\s163959265\r\ntotal\sfrees\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s130503\r\ncurrent\spackets\sallocated\s\s163828762\r\ncurrent\sbytes\sallocated\s\s\s41896099036\r\nmaximum\spackets\sallocated\s\s163828762\r\nmaximum\sbytes\sallocated\s\s\s41896099036\r\nprocedure\s"xx":\smemory\serror\r\n%\r\n</pre>\r\n\r\nActually,\sit\sdepends\swhere\sthe\sallocation\serror\soccurs.\sIt\smight\shappen\r\nin\sa\sTcl_Alloc(),\sit\salso\smight\shappen\sin\sTcl_CreateHashEntry().\r\n\r\nIn\sthe\sfirst\scase,\swe\smight\suse\sTcl_AttemptAlloc()\sand\sdo\sa\sproper\scleanup.\sIn\sthe\sother\scase,\swe\swould\sneed\sa\sTcl_AttemptCreateHashEntry()\s(TIP!)
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K 92aeb847f9b92cfbd281e9263be3f019ad59192b
U jan.nijtmans
Z f9a5398af5bf5203cd2cb1d67ea0452a