| Ticket UUID: | 2098955 | ||
| Title: | TCL_COMPILE_STATS lacking a mutex | ||
| Type: | Bug | Created on: | 2008-09-07 17:52:02 |
| Submitter: | msofer | Assigned to: | msofer |
| Subsystem: | 41. Memory Allocation | Severity: | |
| Priority: | 5 Medium | Last modified: | 2009-12-11 09:52:13 |
| Status: | Open | Closed by: | |
| Resolution: | None | Closed on: | |
| Version: | None | ||
| Description: | ||||
Access to tclObjsAlloced and tclObjsFreed should be protected by a mutex in threaded builds. | ||||
| User Comments: | ||||
msofer added on 2008-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. ferrieux added on 2008-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 ? | ||||
