diff options
author | dgp <dgp@users.sourceforge.net> | 2016-07-07 18:44:56 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-07-07 18:44:56 (GMT) |
commit | fc2bc121acb78c5544d30d1e7ceb507397fe3e78 (patch) | |
tree | 5d309a43748cca3dbc0a6c53fac9dc3f3fa6ffe8 /generic/regcustom.h | |
parent | f7aa28a9960d172ef84736f3609940c5564d5325 (diff) | |
download | tcl-fc2bc121acb78c5544d30d1e7ceb507397fe3e78.zip tcl-fc2bc121acb78c5544d30d1e7ceb507397fe3e78.tar.gz tcl-fc2bc121acb78c5544d30d1e7ceb507397fe3e78.tar.bz2 |
To use a Tcl_Command token [aka (Command *)] for epoch checking, we must not
permit it to be freed while we hold it or else it could be mistaken for another
token allocated later that just happens to reside at the same address.
(Command *) preservation machinery already exists, just need to use it.
An extension facing the same problem might have to rely on command delete
traces.
Earlier revisions used (Namespace *) lifetime to achieve the same
results, but that's really an indirect (possibly non-robust) path to achieving
the proper goal.
Valgrind is happy now.
Diffstat (limited to 'generic/regcustom.h')
0 files changed, 0 insertions, 0 deletions