<i>Information request regarding 'memory' command</i> status still Open with 5 other changes
by
.
D 2014-03-06T13:51:28.122
J icomment The\swhole\sTcl\slibrary\s<b>must</b>\sbe\scompiled\swith\s<tt>TCL_MEM_DEBUG</tt>\sdefined,\sin\sorder\sfor\sthe\stracking\shooks\sto\sbe\sput\sin\sthe\smemory\smanagement\scode\s<i>at\sall</i>.\sIt's\salso\srecommended\sthat\syou\srecompile\syour\scode\swith\sthat\ssymbol\sdefined\swhen\susing\sthe\sTcl\slibrary\s(so\sallocations\svia\sTcl's\sAPIs\sfrom\syour\scode\salso\sget\stracked),\sthough\sit\sshouldn't\sstrictly\sbe\snecessary.\r\n<p>The\s<b>supported\sway\sof\sdoing\sthis</b>\sis\sby\spassing\s<tt>--enable-symbols=mem</tt>\sto\s<tt>configure</tt>\swhen\sbuilding\sTcl.\s(This\simplies\s<tt>--enable-symbols</tt>,\sand\sis\simplied\sby\s<tt>--enable-symbols=all</tt>,\swhich\sturns\son\sother\stypes\sof\sdebugging\sas\swell.)\r\n<p>This\sis\sin\saddition\sto\scalling\s<tt>Tcl_InitMemory</tt>.\sWhen\s<tt>TCL_MEM_DEBUG</tt>\sis\s<b>not</b>\sdefined\swhen\sbuilding\sTcl,\s<tt>Tcl_InitMemory</tt>\sis\san\sempty\sfunction,\sa\sno-op.
J login dkf
J mimetype text/html
J subsystem 41.\sMemory\sAllocation
J username dkf
K 1abbfcdff166b9f6bd2de2c27e5d09315f7baaa0
U dkf
Z 49d43ecb49fbc89d02fbf12132cd0e32