Skip to content
Tcl Source Code History Of Ticket 1290457
Login

History Of Ticket 1290457

Artifacts Associated With Ticket 1290457

  1. Ticket change [cf41021240] (rid 112940) by tallniel on 2005-09-13 21:06:36:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      This patch refactors TclEvalObjvInternal into a bunch
      of distinct functions to handle command lookup, enter
      traces, exit traces, unknown commands, and actual
      invocation. I think the resultant code is clearer and
      easier to maintain. Passes the test-suite, and should
      behave identically to the previous code.
      
    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: "tallniel"
    9. subsystem initialized to: "45. Parsing and Eval"
    10. title initialized to: "TEOVI refactoring"
    11. type initialized to: "Patch"
  2. Add attachment "teovi.patch" [cc4e7c111b] (rid 95675) by tallniel on 2005-09-14 04:06:37.

  3. Ticket change [45c7fe87e8] (rid 99406) by tallniel on 2005-09-14 04:06:38:

    1. icomment:
      
      
      File Added - 148976: teovi.patch
      
      
      
    2. login: "tallniel"
    3. mimetype: "text/plain"
    4. username: "tallniel"
  4. Ticket change [a204f320dd] (rid 109822) by tallniel on 2005-09-14 04:14:37:

    1. assignee changed to: "dgp"
  5. Add attachment "teovi-dgp-refactor.patch" [a8c783aadb] (rid 99048) by tallniel on 2005-09-14 04:39:50.

  6. Ticket change [fbd0859f81] (rid 108125) by tallniel on 2005-09-14 04:40:00:

    1. icomment:
      
      
      File Added - 148982: teovi-dgp-refactor.patch
      
      
      
    2. login: "tallniel"
    3. mimetype: "text/plain"
    4. username: "tallniel"
  7. Ticket change [44f95691cb] (rid 116800) by tallniel on 2006-06-14 02:37:07:

    1. icomment:
      Logged In: YES 
      user_id=102050
      
      Updated patch for latest CVS HEAD (*not* dgp-refactor).
      
      
    2. login: "tallniel"
    3. mimetype: "text/plain"
    4. username: "tallniel"
  8. Add attachment "teovi-13Jun06.patch" [f76f4b418e] (rid 91379) by tallniel on 2006-06-14 02:37:08.

  9. Ticket change [466b1f11da] (rid 99516) by tallniel on 2006-06-14 02:37:08:

    1. icomment:
      
      
      File Added - 181538: teovi-13Jun06.patch
      
      
      
    2. login: "tallniel"
    3. mimetype: "text/plain"
    4. username: "tallniel"
  10. Ticket change [767d1e31bc] (rid 105600) by dgp on 2006-06-14 23:09:59:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      This patch may contain the
      seeds for a fix for 582506.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Add attachment "teovi-29Jun06.patch" [cb1725aa42] (rid 95465) by tallniel on 2006-06-30 17:47:31.

  12. Ticket change [dc1bc7c7d5] (rid 108073) by tallniel on 2006-06-30 17:47:31:

    1. icomment:
      
      
      File Added - 183405: teovi-29Jun06.patch
      
      Logged In: YES 
      user_id=102050
      
      Uploading newer patch:
      
      The new patch refactors things again to create a new
      TclInvokeCommand function that can be used in place of the
      various places where the core directly calls a
      cmdPtr->objProc (e.g. 582506). The new function is not
      declared "static", but I've not put a declaration in any
      header file as I wasn't sure which would be appropriate
      (tclCompile.h?). For instance, to fix 582506 you can change
      InvokeImportedCmd (in tclNamesp.c) from:
      
          return (*realCmdPtr->objProc)(realCmdPtr->objClientData,
      interp,
              objc, objv);
      
      to:
      
          return TclInvokeCommand(interp, objc, objv, realCmdPtr, 0);
      
      (Actually, this only fixes the original problem of 582506 --
      miguel's added comment is not fixed as that requires further
      changes to how execution traces are stored/invoked).
      
      I've also added a TODO comment in the source for
      TclEvalObjvInternalUnknownHandler. In the original code this
      calls Tcl_GetCommandFromObj to check if the handler exists
      and then calls TEOVI to invoke it (which then calls T_GCFO
      again). I think this can be replaced by a call to the new
      TclInvokeCommand, which would avoid the extra call to T_GCFO
      as we could just pass in the Command from the previous call.
      However, the call to TEOVI also passes in the *original*
      command+args string when calling the unknown handler. I'm
      not sure if this is ever actually used (it is passed to
      further execution trace handlers, but I haven't dug
      further), so I'm not sure if this replacement can be made
      safely.
      
      The new patch passes the test-suite, *EXCEPT* it causes a
      segfault in one test in stack.test on my system, but only
      when symbols are *disabled*. The segfault is from blowing
      the C stack, and is obviously caused by the extra function
      call added to the stack (TEOVI -> TEOVIInvokeCommand).
      Adding an "inline" keyword to TEOVIIC fixes this for me, but
      is C99/GCC-specific. Alternatives would be either to inline
      this function manually again (still leaves some refactoring,
      which may be worth it), or a further refactoring. The
      further refactoring would split into before/after functions
      for taking care of traces etc, but leave the actual calling
      of cmdPtr->objProc to the caller (TEOVI or
      TclInvokeCommand). I can produce a further patch for this if
      you want. 
      
      
    2. login: "tallniel"
    3. mimetype: "text/plain"
    4. username: "tallniel"
  13. Ticket change [09ec0e8fc0] (rid 113732) by dgp on 2006-07-07 00:12:42:

    1. assignee changed to: "tallniel"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      What's the right way for
      TclObjInvoke() to use the
      new routines instead of
      calling cmdPtr->objProc
      directly?  Can an updated
      patch make that change?
      
      Likewise for InvokeImportedCmd()
      in tclNamespace.c
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  14. Add attachment "teovi-08July06.patch" [07ab6ae0ce] (rid 89448) by tallniel on 2006-07-08 21:42:37.

  15. Ticket change [96c11223af] (rid 106379) by tallniel on 2006-07-08 21:42:37:

    1. icomment:
      
      
      File Added - 184266: teovi-08July06.patch
      
      Logged In: YES 
      user_id=102050
      
      I've added a new patch (teovi-08July06.patch) which converts
      TclObjInvoke, InvokeImportedCmd and TclInvokeObjectCommand
      (needed?) to use the new TclInvokeCommand. This passes the
      test-suite and passes the original code for bug 582506.
      
      I put the declaration for TclInvokeCommand in tclInt.h for now.
      
      
    2. login: "tallniel"
    3. mimetype: "text/plain"
    4. username: "tallniel"
  16. Ticket change [f74da4bd03] (rid 91353) by tallniel on 2009-03-03 00:28:58:

    1. closedate changed to: "2009-03-02T17:28:58"
    2. closer changed to: "tallniel"
    3. icomment:
      
      
      allow_comments - 1
      
      I believe the NRE changes make this patch obsolete now.
      
      
    4. login: "tallniel"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Closed"
    8. username: "tallniel"