Overview
| Artifact ID: | 62217baa295fbafdeb890650b37b1b165b320890 |
|---|---|
| Ticket: | 3392070fffffffffffffffffffffffffffffffff
literal leak with delayed compile [subst] |
| User & Date: | ferrieux on 2011-08-17 00:26:45 |
Changes
- icomment:
The leaking case seems to be correlated with shimmering from localVarName to substCode: set repr ::tcl::unsupported::representation if 1 { proc foo {} { scan x %c j return $j } foo puts [$repr j] set subst subst $subst j puts [$repr j] } => value is a localVarName with a refcount of 5, object pointer at 0x4237408, internal representation (nil):(nil), string representation "j". value is a substcode with a refcount of 6, object pointer at 0x4237408, internal representation 0x423cad8:0x7, string representation "j". ==16322== definitely lost: 24 bytes in 1 blocks While (shimmering to List in between): set repr ::tcl::unsupported::representation if 1 { proc foo {} { scan x %c j return $j } proc bar x { llength $x } foo puts [$repr j] bar j puts [$repr j] set subst subst $subst j puts [$repr j] } => value is a localVarName with a refcount of 5, object pointer at 0x4237878, internal representation (nil):(nil), string representation "j". value is a list with a refcount of 5, object pointer at 0x4237878, internal representation 0x423d848:(nil), string representation "j". value is a substcode with a refcount of 5, object pointer at 0x4237878, internal representation 0x423dea0:0x7, string representation "j". ==16479== definitely lost: 0 bytes in 0 blocks - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"