Skip to content
Tcl Source Code Artifact [2a0aabfe8a]
Login

Artifact [2a0aabfe8a]

Artifact 2a0aabfe8ab0e451405d6714470027c1178cd183:

Ticket change [2a0aabfe8a] - Ticket [1030548fffffffff|1030548fff] <i>Tcl 8.4 fails to build in debug/threaded config</i> status still Pending with 4 other changes by dossy on 2004-12-05 08:06:33.
D 2004-12-05T08:06:33
J icomment Logged\sIn:\sYES\s\nuser_id=21885\n\nI\sagree\swith\syou,\sJeff,\ssince\sthe\sspecial\sAOLserver\sbuilds\nactually\suse\ssed\sscripts\sto\schange\sTcl\safter\sTcl's\n"configure"\sscript\shas\sbeen\srun.\n\nThe\serror\sin\sthe\sAOLserver\sbuild\sthat\sI\sget\snow\swhen\sin\sthe\n--enable-symbols=mem\sTcl\sconfiguration\sis:\n\nnsthreadtest.o:\sIn\sfunction\s`DumperThread':\n/cm/build/public/aolserver_v40_r9_test/aolserver/aolserver/nsthread/nsthreadtes\nt.c:336:\sundefined\sreference\sto\s`Tcl_GetMemoryInfo'\n\nThe\saddition\sof\s"!defined(TCL_MEM_DEBUG)"\sto\sthe\stop\sof\ngeneric/tclThreadAlloc.c\sin\sthe\sfix\sto\sbug\s1030548\smeans\nthat\sTcl_GetMemoryInfo()\swhich\sis\sdefined\sin\sthe\sfile\swon't\nget\scompiled.\n\nSince\sit\sseems\sthat\sdefining\sTCL_THREADS\sand\nUSE_THREAD_ALLOC\sis\smutually\sexclusive\sto\sTCL_MEM_DEBUG,\nthen\sperhaps\sthe\sfix\sto\sthis\sbug\sis\scorrect,\sand\sAOLserver\nneeds\sto\sbe\smodified.\s\sHowever,\sthe\schange\sintroduced\sby\nthis\sfix\sdoes\sbreak\sbackward\scompatibility\sat\sleast\sfor\sone\napplication\s(grin)\s--\sperhaps\sa\sTcl_GetMemoryInfo()\scan\sbe\ndefined\sin\sthe\s"#else"\ssection\sat\sthe\send\sof\ngeneric/tclThreadAlloc.c\sthe\ssame\sway\nTclFinalizeThreadAlloc()\swas\sdone?\n\nThe\sreason\swhy\sI\sthink\sthis\sis\swrong\sis\sreally\sbecause\sI\nthink\sthe\snotion\sof\sTCL_MEM_DEBUG\sbeing\smutually\sexclusive\nto\sTCL_THREADS/USE_THREAD_ALLOC\sis\sa\smistake\sor\nmisunderstanding\swhen\sit\swas\sintegrated\sinto\sthe\sTcl\score.\s\s\n\nTCL_MEM_DEBUG\swas\sreally\smeant\sto\sselect\sbehavior\sfor\nTcl_Alloc/Tcl_Free\sand\sfriends,\sin\sgeneric/tclCkalloc.c\sif\nTCL_MEM_DEBUG\sis\son,\sthey\suse\sthe\sdebug\sallocator\nTcl_DbCkalloc\swhich\swraps\sTclpAlloc\selse\sTcl_Alloc\suses\nTclpAlloc\sunwrapped\sand\sTcl_Free\suses\sTclpFree\sunwrapped,\setc.\n\nUSE_THREAD_ALLOC\sis\sthe\sselector\sfor\sthe\s"zippy"\sallocator\n(generic/tclThreadAlloc.c)\svs.\susing\sthe\snormal\sTcl\nallocator\s(generic/tclAlloc.c)\sallocator,\simplementing\stheir\nown\sversions\sof\sTclpAlloc\sand\sTclpFree,\setc.\n\nSo,\sTCL_MEM_DEBUG\sis\sa\swrapping\saround\sthe\sTclp{Alloc,Free}\nthat's\sprovided\sby\sEITHER\stclThreadAlloc.c\sOR\stclAlloc.c.\s\nIt's\snot\sINSTEAD\sof.\n\nDoes\sthis\shelp\smake\sthings\sclear\swhy\sI\sthink\sthe\nconfigurations\sthat\swe\sare\sbuilding\sat\sAOL\sare\slegitimate\nconfigurations\sthat,\scorrectly,\sTcl\scannot\svalidly\sproduce\n(but\swere\sSUPPOSED\sto!)?\n\n--\sDossy\n
J login dossy
J mimetype text/plain
J username dossy
K 1030548fffffffffffffffffffffffffffffffff
U dossy
Z 79a88ef15063e3087a5d9df77d5f0934