Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TCL_COMPILE_STATS lacking a mutex

Open2098955fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 17 years ago
Descriptionplain2008-09-07 17:52:02
Access to tclObjsAlloced and tclObjsFreed should be protected by a mutex in threaded builds.
msoferplain2008-09-09 23:28:33
Mmhhh ... the objsAlloced stat does not make much sense in threaded builds: its main interest is to see the % of literals, but literals are per interp and we cannot track which interp is allocating the objs anyway (Tcl_New*Obj has no interp argument). So this is mostly interesting in single-interp cases.
ferrieuxplain2008-09-10 02:58:46
Miguel, isn't it your plan to progressively change those interp-agnostic calls into interp-argument ones, in order to avoid the TSD lookup overhead ?
msofer Ticket [2098955fff]: 1 change [History diff]2009-05-01 08:24:18
msofer Ticket [2098955fff]: 1 change [History diff]2009-05-01 08:26:40
msofer Ticket [2098955fff]: 1 change [History diff]2009-12-11 09:52:13
Log in (anonymous is fine) to add a comment.