Skip to content
Tcl Source Code History Of Ticket 1973096
Login

History Of Ticket 1973096

Artifacts Associated With Ticket 1973096

  1. Ticket change [2f707b3fc0] (rid 93069) by msofer on 2008-05-26 15:42:29:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Attached two patches:
        * uplevel.patch just bytecompiles uplevel script
        * uplevel+lvt.patch does the above, plus giving non-body compiled scripts access to the LVT of the level where it runs (if any).
      
      Attached also a timing script test.tcl; it produces
      
      HEAD
      t0:55546
      t1:55228
      t2:46608
      t3:31223
      
      BC'd uplevel
      t0:34785
      t1:35020
      t2:29390
      t3:12376
      
      BC'd and LVT'd uplevel
      t0:34897
      t1:34908
      t2:25833
      t3:9772
      
      Bytecompiling uplevel scripts causes some test failures:
       * encoding-2.2/1.11: this is [Bug 1972867]
       * filesystem-1.11: this is [Bug 1972879]
       * info-22.3,4,5: [info frame] needs to know about the change, not yet done
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "msofer"
    10. subsystem initialized to: "47. Bytecode Compiler"
    11. title initialized to: "bytecompiling uplevel, with access to the LVT"
    12. type initialized to: "Patch"
  2. Add attachment "uplevel.patch" [ab25e0c7fb] (rid 101051) by msofer on 2008-05-26 22:42:29.

  3. Ticket change [f7438ad93c] (rid 91345) by msofer on 2008-05-26 22:42:30:

    1. icomment:
      
      
      File Added - 279096: uplevel.patch
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Add attachment "uplevel+lvt.patch" [f2fe683b7f] (rid 109652) by msofer on 2008-05-26 22:43:21.

  5. Ticket change [80430637c6] (rid 97709) by msofer on 2008-05-26 22:43:22:

    1. icomment:
      
      
      File Added - 279097: uplevel+lvt.patch
      
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      File Added: uplevel+lvt.patch
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Ticket change [ca407f4740] (rid 122432) by msofer on 2008-05-26 22:44:39:

    1. icomment:
      
      
      File Added - 279098: test.tcl
      
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      File Added: test.tcl
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  7. Add attachment "test.tcl" [500e97dfb1] (rid 125913) by msofer on 2008-05-26 22:44:39.

  8. Ticket change [5263c9620a] (rid 126309) by msofer on 2008-05-27 21:37:46:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      Just noticed a problem with the LVT patch, in a contrived (but possible) scenario: assume a proc starts to run but redefines and calls itself. On returning from the nested call the Proc struct (and specifically its local vars) reflect the NEW compilation, which is different from the running one. If in this situation an [uplevel] script is called, it will be compiled to run with the new LVT (as found in the Proc's data), and then actually run with the old one (as found in the CallFrame's localCache)!
      
      This is fixable (and will be fixed) by looking up local vars in the CallFrame's localCache instead of using the Proc data during compilation. In the meantime, the patch here should work fine as long as that unlikely scenario is avoided. Not good for committing, but good enough for preliminary evaluation.
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  9. Add attachment "uplevel+lvt-2.patch" [9d5ba05d4b] (rid 96292) by msofer on 2008-06-02 05:38:41.

  10. Ticket change [0016341c79] (rid 119257) by msofer on 2008-06-02 05:38:41:

    1. icomment:
      
      
      File Added - 279808: uplevel+lvt-2.patch
      
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      New patch with a slightly different approach. Enables LVT access for all compiled commands, with the exception of foreach (body will be compiled anyway!). Note that many will bail out of compiling if the corresponding variable when compiling a non-body and the var is not already in the LVT.
      File Added: uplevel+lvt-2.patch
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  11. Add attachment "uplevel+lvt-3.patch" [ea61c4fde7] (rid 103371) by msofer on 2008-06-08 10:23:20.

  12. Ticket change [c89ecd2c74] (rid 122137) by msofer on 2008-06-08 10:23:20:

    1. assignee changed to: "msofer"
    2. closedate changed to: "2008-06-08T03:23:20"
    3. closer changed to: "msofer"
    4. icomment:
      
      
      File Added - 280593: uplevel+lvt-3.patch
      
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      New patch added and committed. It also avoids reparsing and compiling of scripts that are canonical lists (see FR #1661637), by enabling the canonical list optimisation to sidestep compilation.
      File Added: uplevel+lvt-3.patch
      
      
    5. login: "msofer"
    6. mimetype: "text/plain"
    7. resolution changed to: "Accepted"
    8. status changed to: "Closed"
    9. username: "msofer"
  13. Ticket change [42fb17ed78] (rid 116471) by andreas_kupries on 2008-06-17 05:55:22:

    1. icomment:
      Logged In: YES 
      user_id=75003
      Originator: NO
      
      Note: [info frame] changes have been investigated, and accepted, bug in info frame fixed, see [Bug 1987851].
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"