Skip to content
Tcl Source Code History Of Ticket 746722ffff
Login

History Of Ticket 746722ffff

Artifacts Associated With Ticket 746722ffff

  1. Ticket change [8367527bb4] (rid 117378) by kennykb on 2003-05-31 20:12:17:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      If a bytecoded code sequence contains a tight loop such as
      
      while {1} {}
      
      (in other words, the loop contains no TCL_INVOKE* bytecodes
      when compiled), then async events requested in the current
      interpreter are not delivered.
      
      Attached patch contains two test cases, one that works, and
      one that goes into an endless loop.
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "kennykb"
    9. subsystem initialized to: "47. Bytecode Compiler"
    10. title initialized to: "Tcl_AsyncMark not delivered in tight loops"
    11. type initialized to: "Bug"
  2. Ticket change [7c2af27fbb] (rid 97032) by kennykb on 2003-06-01 03:13:13:

    1. icomment:
      
      
      File Added - 51826: async.patch
      
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  3. Ticket change [8d92cd57b1] (rid 127952) by msofer on 2003-06-05 03:04:11:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      The tests in the patch pass with the current HEAD - i.e.,
      they do not expose the bug.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Add attachment "asynctest.patch" [cf973bc248] (rid 113013) by kennykb on 2003-06-05 05:22:47.

  5. Ticket change [5ad6e2ecc5] (rid 118214) by kennykb on 2003-06-05 05:22:47:

    1. icomment:
      
      
      File Deleted - 51826: 
      
      
      
      File Added - 52213: asynctest.patch
      
      Logged In: YES 
      user_id=99768
      
      Test cases revised to try to improve failure mode - was an infinite loop
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  6. Ticket change [9e922ea1f2] (rid 96494) by dkf on 2003-09-15 04:57:38:

    1. foundin changed to: "obsolete: 8.5a0"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Would a suitable fix be to add a new bytecode whose sole job
      is to call the appropriate Tcl_Async* stuff?  Then we could
      modify the compiler to insert this new opcode when
      appropriate (either in every loop - most easily done IMO -
      or if we detect that the loop body contains no opcodes that
      trigger checking for async events - the minimal requirement.)
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  7. Ticket change [1f1b04dccd] (rid 91088) by msofer on 2003-09-15 06:45:23:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Option (0): check for async tasks at the top of the TEBC
      loop, after every instruction. Easiest, definitely overkill,
      probably unacceptable performance loss
      
      Option (1): special bytecode for "command start" or "command
      end". Easiest, performance? Can skip it for INST_EVAL,
      INST_INVOKE and INST_EXPR as they do the right thing already.
      
      Option (2): special bytecode emitted in every loop (and also
      after every, say, fifth command)
      
      Option (3): special bytecode emitted in every tight loop.
      Best, tougher to implement as the compiler has to study the
      "tightness" of the loops. A suitable definition could be: a
      loop is tight if it has none of the previously mentioned
      instructions. Also requires a solution for long non-loop bcc
      sequences
      
      Option (1) is the cleanest/easiest in my opinion. Never got
      around to code it and time it
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  8. Ticket change [cad5d75ec7] (rid 95428) by msofer on 2003-11-07 22:53:57:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Only in loops does not solve all issues; consider
         proc runLong args \
              [string repeat "set x [string repeat a 2000]\n" 9876543]
         runLong
      No async will be delivered while runLong is running, even if
      we fix the loops. This argues for option 1, I guess
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  9. Ticket change [58876d61df] (rid 117822) by msofer on 2003-11-07 22:55:22:

    1. priority changed to: "8"
  10. Ticket change [ef6044a979] (rid 108980) by dkf on 2003-11-11 04:17:49:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Noting that this issue effectively has to be solved for
      TIP#143 to be implementable.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  11. Add attachment "async.patch" [9b7c2b26ca] (rid 111134) by msofer on 2003-11-16 05:43:44.

  12. Ticket change [85a7e06e39] (rid 131353) by msofer on 2003-11-16 05:43:44:

    1. assignee changed to: "dkf"
    2. icomment:
      
      
      File Added - 67626: async.patch
      
      Logged In: YES 
      user_id=148712
      
      Attached a patch that checks for pending asyncs every 16th
      instruction; the patch includes the tests of asynctest.patch.
      Note that the tests require a threaded build to run.
      Please review.
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  13. Ticket change [54e6bc5eff] (rid 94032) by dkf on 2003-11-16 07:52:53:

    1. assignee changed to: "msofer"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Applied with a few extra tweaks.  Is the updated patch a
      candidate for 8.4?
      
      async-4.2 and 4.3 fail on Linux.  No idea why.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. priority changed to: "5 Medium"
    6. resolution changed to: "Fixed"
    7. username: "dkf"
  14. Ticket change [492075784d] (rid 100009) by dkf on 2003-11-16 07:52:54:

    1. icomment:
      
      
      File Added - 67633: async.patch
      
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  15. Add attachment "async.patch" [f8dd921021] (rid 91610) by msofer on 2003-11-16 18:48:14.

  16. Ticket change [3991db5ffe] (rid 112415) by msofer on 2003-11-16 18:48:14:

    1. closedate changed to: "2003-11-16T11:48:14"
    2. closer changed to: "msofer"
    3. icomment:
      
      
      File Added - 67664: async.patch
      
      Logged In: YES 
      user_id=148712
      
      Two small errors fixed in head incorporated to the patch.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "msofer"
  17. Ticket change [a803a1f089] (rid 98903) by msofer on 2003-11-16 18:48:15:

    1. icomment:
      
      
      File Deleted - 67633: 
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  18. Ticket change [872f16d7ff] (rid 131651) by dkf on 2003-11-17 03:27:14:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Reopening; still need assessment of whether this is a
      candidate for 8.4
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "dkf"
  19. Ticket change [d636f951b4] (rid 123768) by msofer on 2003-11-17 06:32:59:

    1. assignee changed to: "hobbs"
    2. foundin changed to: "obsolete: 8.4.5"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Jeff: incorporate to 8.4 branch? This should really be a
      safe patch, but it has not been stress tested. Also kinda
      late ...
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. username: "msofer"
  20. Ticket change [bafeb38a77] (rid 129405) by hobbs on 2003-11-18 06:53:20:

    1. closedate changed to: "2003-11-17T23:53:20"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      I wimped out and decided not to make these changes for 
      8.4.5.  It spanned a few changes, which indicates it had it's 
      little subtleties.  For reference, the changes when in from 
      [1.114 to 1.117), in case we want to backport for 8.4.6.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "hobbs"