Artifacts Associated With Ticket 1323154
Ticket change [c1a95fc004] (rid 111359) by msofer on 2005-10-10 17:53:43:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
While investigating something else, I came to notice that the compiler is doing a bad job at literal sharing. Note in this bytecode that the three "" appear as three different literals: ByteCode 0x816c458, refCt 1, epoch 0, interp 0x814cb28 (epoch 0) Source "for break 1 {} {}" Cmds 2, src 17, inst 18, litObjs 4, aux 0, stkDepth 1, code/src 12.00 Code 204 = header 100+inst 18+litObj 16+exc 56+aux 0+cmdMap 8 Exception ranges 2, depth 1: 0: level 1, loop, pc 4-5, continue 7, break 15 1: level 1, loop, pc 7-8, continue -1, break 15 Commands 2: 1: pc 0-16, src 0-16 2: pc 0-0, src 4-8 Command 1: "for break 1 {} {}" Command 2: "break" (0) break (1) pop (2) jump1 +8 # pc 10 (4) push1 0 # "" (6) pop (7) push1 1 # "" (9) pop (10) push1 2 # "1" (12) tryCvtToNumeric (13) jumpTrue1 -9 # pc 4 (15) push1 3 # "" (17) done i - foundin initialized to: "obsolete: 8.5a4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "improve literal handling"
- type initialized to: "Bug"
Ticket change [6b20e3d262] (rid 128266) by msofer on 2005-10-11 01:06:03:
- icomment:
Logged In: YES user_id=148712 Tcl8.4.11 does not have this problem, the literal is shared there
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [8844eee5ce] (rid 131842) by msofer on 2005-10-11 01:17:35:
- closedate changed to: "2005-10-10T18:17:35"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 This is just a fluke caused by the fix for [Bug 458361]: single-word scripts are unshared in order to stop them from shimmering. Nothing to see here, not a bug.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "msofer"