.
D 2008-11-25T19:58:24
J assignee andreas_kupries
J cmimetype text/plain
J comment With\sTcl\sfrom\sHEAD\scompiled:\n\n\s\s--enable-threads\s--enable-symbols=mem\n\non\sa\smodern\s32bit\sLinux,\sa\sprogram\s(naviserver)\slinked\swith\sthat\sTcl\saborts\swith\sthis\smessage:\n\n\s\sTcl_GetMemoryInfo\scalled\swhen\sthreaded\smemory\sallocator\snot\sin\suse\n\nYet\sthe\stclConfig.sh\scontains:\n\n\s\s-DTCL_THREADS=1\n\s\s-DUSE_THREAD_ALLOC=1\n\nAnd\sthe\ssymbol\sUSE_THREAD_ALLOC,\swhich\sthis\sfeature\sdepends\son,\sseems\sto\sbe\sunconditionally\sdefined\swhen\s--enable-threads\sis\sspecified.\n\nIs\sthe\sthreaded\sallocator\sactually\senabled\swhen\s--enable-threads\sis\sspecified\s(this\sused\sto\sbe\sthe\scase),\sor\sis\sTcl_GetMemoryInfo\smistaken?\n\nWhat\sis\sthe\scorrect\sway\sto\sfigure\sout\swhether\sI\scan\scall\sTcl_GetMemoryInfo\sfrom\san\sapplication?\n\n\nAlso,\sit\swould\sbe\snice\sto\shave\sa\sconfigure\sswitch\sfor\sthe\smemory\sallocator:\n\n\s\s--enable-thread-allocator\n\nYou\scould\sdefault\sit\sto\son\sif\s--enable-threads\sis\sspecified,\sas\sused\sto\sbe\sthe\scase,\sbut\syou\smay\swant\sto\sdefault\sthis\sto\soff\sconsidering\sthat\sOS\sallocators\sperform\sbetter\swith\sthreads\sthan\sthey\sused\sto\sand\sfor\sthe\stypical\sthreaded\sdesktop\sapp\sare\slikely\sto\suse\smuch\sless\smemory\sthan\sthe\sTcl\sallocator.\n
J foundin obsolete:\s8.6a4
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter sdeasey
J subsystem 49.\sThreading
J title Tcl_GetMemoryInfo\saborts\sw/threaded\smemory\sallocator
J type Bug
K 2345638fffffffffffffffffffffffffffffffff
U sdeasey
Z ecb1b8d20eee4c314431cfe6eabe09f2