Skip to content
Tcl Source Code History Of Ticket 3072080
Login

History Of Ticket 3072080

Artifacts Associated With Ticket 3072080

  1. Ticket change [6c4be977ce] (rid 128480) by msofer on 2010-09-20 18:41:24:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Attached a patch that removes all NRE duties from TEBC: it is a relatively big redesign of the NRE main loop.
      
      The original NRE implementation has TclNRRunCallbacks (TNRRC) and TEBC work in tandem, working hard to reuse TEBC instances. The design is at the root of a very complicated logic flow within TEBC and elsewhere.
      
      This patch removes the special NRE status from TEBC. The main advantage is that the logic is much simpler (both within TEBC and elsewhere), leading to enhanced maintainability.
      
      I would appreciate more thorough testing (and perf impact estimates?) before committing this patch.
      
    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: "45. Parsing and Eval"
    11. title initialized to: "a saner NRE"
    12. type initialized to: "Patch"
  2. Add attachment "inv.diff" [08ced5c447] (rid 89625) by msofer on 2010-09-21 01:41:24.

  3. Ticket change [fa799d9dfd] (rid 91884) by msofer on 2010-09-21 01:41:24:

    1. icomment:
      
      
      File Added - 387291: inv.diff
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Ticket change [2a4795ae50] (rid 118523) by ferrieux on 2010-09-21 03:40:17:

    1. icomment:
      Attaching perf measurements with the "10-bench + spacer" technique. The first four columns are normalized times. First line headers give the names:
         - tcl86 == vanilla HEAD
         - tcl86foo == HEAD + 16-byte foo spacer at beginning of regcomp.o
         - tcl86sn == HEAD + Saner Nre patch
         - tcl86snfoo == both
      File sorted on column 3, which is tcl86sn time.
      Bottom line: hard to summarize... range is roughly +-12%, though near both extremes the foo-spacer wipes the effect. Tough...
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  5. Add attachment "sn_summary.txt" [a23f64bfec] (rid 109855) by ferrieux on 2010-09-21 03:44:25.

  6. Ticket change [85f3f279af] (rid 131416) by ferrieux on 2010-09-21 03:44:25:

    1. icomment:
      
      
      File Added - 387302: sn_summary.txt
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  7. Ticket change [3db44ae954] (rid 121131) by ferrieux on 2010-09-21 04:19:28:

    1. icomment:
      Also, var.test panics on my system (unix threaded, nondebug):
      
      Test file error: TclStackFree: incorrect freePtr (0x8421f48 != 0x8421f3f). Call out of sequence?
      
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  8. Ticket change [cb7e0a67a8] (rid 95532) by msofer on 2010-09-21 20:19:43:

    1. subsystem changed to: "60. NRE and coroutines"
  9. Ticket change [6422b6f12b] (rid 92710) by msofer on 2010-09-22 18:18:15:

    1. icomment:
      Note that this patch also fixes Bug #3072640
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  10. Ticket change [80b1138a02] (rid 116913) by msofer on 2010-09-22 18:45:40:

    1. icomment:
      Mem corruption: some obj's typePtr points to some (other?) obj's string rep: see valgrind's complaint below.
      
      Does not at first look like a refCount issue: this is a -DPURIFY build, so that individual objs (and TclSmallAlloc) are all done by calls to ckalloc.
      
      ==3585== Invalid read of size 4
      ==3585==    at 0x807B28B: TclFreeObj (tclObj.c:1413)
      ==3585==    by 0x815C50E: TclResumeByteCode (tclExecute.c:6324)
      ==3585==    by 0x80DCC7B: TclNRRunCallbacks (tclBasic.c:4312)
      ==3585==    by 0x80DEE3F: TclEvalObjEx (tclBasic.c:5887)
      ==3585==    by 0x80DEDCE: Tcl_EvalObjEx (tclBasic.c:5868)
      ==3585==    by 0x816871B: Tcl_RecordAndEvalObj (tclHistory.c:192)
      ==3585==    by 0x80736E6: Tcl_Main (tclMain.c:471)
      ==3585==    by 0x80564C4: main (tclAppInit.c:85)
      ==3585==  Address 0x4317cbf is 127 bytes inside a block of size 196 free'd
      ==3585==    at 0x4024B3A: free (vg_replace_malloc.c:366)
      ==3585==    by 0x818E817: TclpFree (tclAlloc.c:730)
      ==3585==    by 0x80E7B34: Tcl_Free (tclCkalloc.c:1207)
      ==3585==    by 0x807B272: TclFreeObj (tclObj.c:1410)
      ==3585==    by 0x815C50E: TclResumeByteCode (tclExecute.c:6324)
      ==3585==    by 0x80DCC7B: TclNRRunCallbacks (tclBasic.c:4312)
      ==3585==    by 0x80DEE3F: TclEvalObjEx (tclBasic.c:5887)
      ==3585==    by 0x80DEDCE: Tcl_EvalObjEx (tclBasic.c:5868)
      ==3585==    by 0x816871B: Tcl_RecordAndEvalObj (tclHistory.c:192)
      ==3585==    by 0x80736E6: Tcl_Main (tclMain.c:471)
      ==3585==    by 0x80564C4: main (tclAppInit.c:85)
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  11. Ticket change [5ed7b7406b] (rid 115702) by msofer on 2010-09-22 23:01:49:

    1. icomment:
      New patch; please apply to HEAD including the 2010-09-22 fixes
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  12. Ticket change [72cdbad03d] (rid 104925) by msofer on 2010-09-22 23:02:50:

    1. icomment:
      
      
      File Added - 387539: inv2.diff
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  13. Ticket change [f3acd2e783] (rid 129753) by msofer on 2010-09-23 04:16:51:

    1. icomment:
      
      
      File Deleted - 387539: 
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  14. Add attachment "inv2.diff" [650f408bd1] (rid 92881) by msofer on 2010-09-23 04:17:20.

  15. Ticket change [0dcaeb6a09] (rid 114424) by msofer on 2010-09-23 04:17:20:

    1. icomment:
      
      
      File Added - 387566: inv2.diff
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  16. Ticket change [a6406eeae7] (rid 98566) by ferrieux on 2010-09-23 13:44:07:

    1. icomment:
      Moving target, aiming again ;-)
      Attaching new timings:
      
       - decache_summary.txt just compares before and after the DECACHE_STACK_INFO commits. I know they were necessary, but IMO it's interesting to keep an eye on the needle when doing brain surgery. Result: a maximum of 6% slowdown, not significant given the other deviations with/out the spacer.
      
       - sn2_summary.txt compares current HEAD with inv2.diff. Result: still <=12%...
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  17. Add attachment "decache_summary.txt" [09540b7520] (rid 89700) by ferrieux on 2010-09-23 13:44:55.

  18. Ticket change [63d71575fa] (rid 92649) by ferrieux on 2010-09-23 13:44:56:

    1. icomment:
      
      
      File Added - 387604: decache_summary.txt
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  19. Ticket change [fb0f32cafe] (rid 91988) by ferrieux on 2010-09-23 13:45:25:

    1. icomment:
      
      
      File Added - 387605: sn2_summary.txt
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  20. Add attachment "sn2_summary.txt" [f0dab0d3cb] (rid 109268) by ferrieux on 2010-09-23 13:45:25.

  21. Ticket change [142772d458] (rid 124344) by msofer on 2010-09-28 01:15:17:

    1. icomment:
      updated patch - ready to commit as soon as I find out how to handle the 1-line change to itcl
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  22. Add attachment "inv.diff" [bb159f1008] (rid 129416) by msofer on 2010-09-28 01:16:06.

  23. Ticket change [f411a68916] (rid 129832) by msofer on 2010-09-28 01:16:06:

    1. icomment:
      
      
      File Added - 388051: inv.diff
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  24. Ticket change [7af0969490] (rid 90427) by msofer on 2010-09-28 03:03:27:

    1. closedate changed to: "2010-09-27T20:03:27"
    2. closer changed to: "msofer"
    3. icomment:
      
      
      allow_comments - 1
      
      Committed
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Accepted"
    7. status changed to: "Closed"
    8. username: "msofer"