Skip to content
Tcl Source Code Artifact [1b4e7a6a18]
Login

Artifact [1b4e7a6a18]

Artifact 1b4e7a6a18130133eaf2170096b65a276bc48c01:

Manifest of check-in [1b4e7a6a18] - 2001-05-04 Daniel Steffen <[email protected]> ** Mac 8.3.3 binary release * mac/tclMacAlloc.c: modernized TclpSysAlloc() to use temporary memory instead of system heap memory when available (MacOS >= 7.5 and possibly earlier, use of system heap has been discouraged for a long time and has many disadvantages, e.g. memory isn't paged out, and errors can very easily bring the system down); fixed crashing bug in TclpSysRealloc() and CleanUpExitProc() where memory was being accessed after having been deallocated; fixed memory leak in (de)allocation code (for every block ever allocated with TclpSysAlloc, a Ptr was leaked), if temporary memory is available, don't track allocated memory, instead use RecoverHandle() to get Handle from Ptr, otherwise use doubly linked list to correctly track memory and free all allocated memory; added new option for ConfigureMemory: MEMORY_DONT_USE_TEMPMEM, disables use of temporary memory even when it would be available, only necessary when writing e.g. a driver (using tcl??); increased fraction of application heap reserved for OS routines to 512K by das on 2001-05-17 13:30:02.
B 5af04f5bb1574d4553aeed3001bedaec8d70fd29
C 2001-05-04\s\sDaniel\sSteffen\s<[email protected]>\n\n\s\s\s\s\s\s\s\s**\sMac\s8.3.3\sbinary\srelease\n\n\s\s\s\s\s\s\s\s*\smac/tclMacAlloc.c:\smodernized\sTclpSysAlloc()\sto\suse\stemporary\n\s\s\s\s\s\s\s\smemory\sinstead\sof\ssystem\sheap\smemory\swhen\savailable\s(MacOS\n\s\s\s\s\s\s\s\s>=\s7.5\sand\spossibly\searlier,\suse\sof\ssystem\sheap\shas\sbeen\n\s\s\s\s\s\s\s\sdiscouraged\sfor\sa\slong\stime\sand\shas\smany\sdisadvantages,\se.g.\smemory\n\s\s\s\s\s\s\s\sisn't\spaged\sout,\sand\serrors\scan\svery\seasily\sbring\sthe\ssystem\sdown);\n\s\s\s\s\s\s\s\sfixed\scrashing\sbug\sin\sTclpSysRealloc()\sand\sCleanUpExitProc()\swhere\n\s\s\s\s\s\s\s\smemory\swas\sbeing\saccessed\safter\shaving\sbeen\sdeallocated;\sfixed\n\s\s\s\s\s\s\s\smemory\sleak\sin\s(de)allocation\scode\s(for\severy\sblock\sever\sallocated\n\s\s\s\s\s\s\s\swith\sTclpSysAlloc,\sa\sPtr\swas\sleaked),\sif\stemporary\smemory\sis\n\s\s\s\s\s\s\s\savailable,\sdon't\strack\sallocated\smemory,\sinstead\suse\n\s\s\s\s\s\s\s\sRecoverHandle()\sto\sget\sHandle\sfrom\sPtr,\sotherwise\suse\sdoubly\slinked\n\s\s\s\s\s\s\s\slist\sto\scorrectly\strack\smemory\sand\sfree\sall\sallocated\smemory;\sadded\n\s\s\s\s\s\s\s\snew\soption\sfor\sConfigureMemory:\sMEMORY_DONT_USE_TEMPMEM,\sdisables\n\s\s\s\s\s\s\s\suse\sof\stemporary\smemory\seven\swhen\sit\swould\sbe\savailable,\sonly\n\s\s\s\s\s\s\s\snecessary\swhen\swriting\se.g.\sa\sdriver\s(using\stcl??);\sincreased\n\s\s\s\s\s\s\s\sfraction\sof\sapplication\sheap\sreserved\sfor\sOS\sroutines\sto\s512K\n
D 2001-05-17T13:30:02
F mac/tclMacAlloc.c 73506340ade29bdfbebfc2accb1e030ac16733a5
P 5af04f5bb1574d4553aeed3001bedaec8d70fd29
U das
Z 99632d1d484b0234ee566861ea3adc8d