Artifacts Associated With Ticket 3008541
Ticket change [f7eff59697] (rid 91454) by nijtmans on 2010-05-28 13:30:59:
- assignee initialized to: "ferrieux"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When the TIP #348 fields were added to the Interp structure, all fields after that where shifted up. This means that any extension which uses any of those internal Interp fields needs to be recompiled, or it will stop working. Suggestion: When adding fields to a structure, please do that in a clearly marked region at the end of the structure. See patch. Agreed? (no offence).... P.S. ByteCodeStats stats should be the last field, otherwise the field order depends on the value of TCL_COMPILE_STATS. But the TIP #348 implementation cannot be blamed for that, that was my fault....... Jan Nijtmans - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "3 Low"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nijtmans"
- subsystem initialized to: "None"
- title initialized to: "order of TIP #348 fields in Interp structure"
- type initialized to: "Patch"
Add attachment "tclInt.h.patch" [b6d63d67a6] (rid 125486) by nijtmans on 2010-05-28 20:30:59.
Ticket change [cb2630c9b4] (rid 95475) by nijtmans on 2010-05-28 20:31:00:
- icomment:
File Added - 375459: tclInt.h.patch
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [ccecd86471] (rid 95793) by ferrieux on 2010-05-28 20:42:42:
- icomment:
Yes, Don told me that already, but since there was that conditional part with COMPILE_STATS, we agreed to do nothing :} Now if we decide that COMPILE_STATS has a fixed value for all production code, I agree that it's better that evolution be monotonic. Please commit your patch. Side note: the #ifdef at the end is better than in the middle, but still not bullet-proof in case of further extensions of the interp struct. I'd prefer it to be unconditional. But at the same time I see it is quite big. What about making an indirection ? In this case the 4 bytes can be harmlessly wasted and set to NULL when we don't want compilation statistics...
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [8e04aaaece] (rid 120046) by nijtmans on 2010-05-28 20:58:54:
- closedate changed to: "2010-05-28T13:58:54"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 Thanks, committed! The ByteCodeStats stats at the end is indeed not perfect, but any other solution I can think of is not perfect either. And since changing COMPILE_STATS means that Tcl has to be re-compiled anyway, having this field at the end is at least "almost perfect".
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "nijtmans"