Skip to content
Tcl Source Code History Of Ticket 976496ffffffffff
Login

History Of Ticket 976496ffffffffff

Artifacts Associated With Ticket 976496ffffffffff

  1. Ticket change [824e69334c] (rid 117214) by mistachkin on 2004-06-21 03:14:13:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Runaway usage of TLS indexes causes some operating 
      systems to fail to load complex Tcl/Tk applications when 
      threads are enabled.
      
      The attached patch "fixes" the problem and successfully 
      completes "make test" without any new test failures.
      
      However, since the attached patch is non-trivial, I 
      would like as many people as possible to review it before 
      it is committed to HEAD.
      
      The "tclThreadStorage.c" file should be placed in 
      the "generic" directory.
      
      I would also like some help changing the various make 
      related files to include a new compile time 
      option "USE_THREAD_STORAGE" which would enable the 
      new generic "Thread Storage" subsystem instead of 
      using pthreads on Unix and TLS on Win32.
      
      Thanks.
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "mistachkin"
    9. subsystem initialized to: "49. Threading"
    10. title initialized to:
      complex Tcl/Tk apps run out of TLS indexes on Win32...
      
    11. type initialized to: "Patch"
  2. Ticket change [36d063227c] (rid 107169) by mistachkin on 2004-06-21 10:14:13:

    1. icomment:
      
      
      File Added - 91318: threadStorage.zip
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  3. Ticket change [cc4886adcf] (rid 95668) by dkf on 2004-06-21 15:57:58:

    1. assignee changed to: "nobody"
    2. subsystem changed to: "None"
  4. Ticket change [1373b70418] (rid 124221) by dkf on 2004-06-21 15:58:48:

    1. subsystem changed to: "49. Threading"
  5. Ticket change [9e198f18fa] (rid 96419) by dkf on 2004-06-21 20:08:04:

    1. assignee changed to: "kennykb"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      OK, here are some issues I've spotted.
      
       * Don't forget to alter the other Makefiles too. :^)
      
       * Perhaps the right thing to do would be to #def the
      TclpThreadData* functions as TclThreadStorage* functions?
      
       * You don't need STORAGE_LOCK and STORAGE_UNLOCK, and it is
      better to use function calls for that instead of macros.
      
       * TclThreadStorageLockInit unfinished?
      
       * panic() should be Tcl_Panic()
      
      Alas, I only have limited expertise at evaluating the
      semantic content of this alteration.  Assigning to someone
      who might know more than me... :^)
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  6. Ticket change [3570134eef] (rid 106931) by mistachkin on 2004-06-22 04:01:46:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      Patch updated.
      
      * Modified the unix "Makefile.in" and "tcl.m4".
      
      * Modified "tclThread.c" to call the new thread storage 
      functions if USE_THREAD_STORAGE is defined.
      
      * Removed STORAGE_LOCK and STORAGE_UNLOCK defines 
      from "tclThreadStorage.c".
      
      * TclThreadStorageLockInit is fine.
      
      * Changed "panic" calls to "Tcl_Panic".
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  7. Ticket change [f79c89de23] (rid 91404) by mistachkin on 2004-06-22 04:01:47:

    1. icomment:
      
      
      File Added - 91421: threadStorage2.zip
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  8. Ticket change [8deb28c998] (rid 128025) by dgp on 2004-06-22 04:49:09:

    1. icomment:
      
      
      File Added - 91427: 976496.patch
      
      Logged In: YES 
      user_id=80530
      
      Here are the same changes
      packaged as a single patch
      file.
      
      Patch itself doesn't quite
      work for me.  Without --enable-threads,
      there's a link error; with --enable-threads,
      tcltest hangs on startup during `make test`
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [52e7f04213] (rid 126402) by mistachkin on 2004-06-22 06:49:11:

    1. icomment:
      
      
      File Deleted - 91421: 
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  10. Ticket change [f8f0139f8c] (rid 91622) by mistachkin on 2004-06-22 06:51:28:

    1. icomment:
      
      
      File Added - 91438: threadStorage3.zip
      
      Logged In: YES 
      user_id=113501
      
      
      This new patch should fix the previous problems.
      
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  11. Ticket change [85bb3d1938] (rid 131366) by mistachkin on 2004-06-22 06:54:12:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      
      Oh, can somebody please update the Mac OS X files that 
      need to be changed to add the "tclThreadStorage.c" file, like 
      the ".project" file, I believe?
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  12. Ticket change [aa61de5abc] (rid 100915) by mistachkin on 2004-06-22 16:01:43:

    1. icomment:
      
      
      File Deleted - 91438: 
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  13. Ticket change [78fcfeff40] (rid 90047) by mistachkin on 2004-06-22 17:00:10:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      Patch updated with various tweaks and performance 
      enhancements.
      
      Tested successfully on Windows NT 4 and FreeBSD 4.10-
      STABLE.
      
      Needs testing on Windows 98, Windows 2000, Solaris, Linux, 
      OpenBSD, Mac OS X (also see previous note about Mac OS X 
      below), some 64-bit platforms, and whatever other random 
      platforms are out there.
      
      DGP: Could you delete your patch below and recreate it if you 
      would?
      
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  14. Ticket change [8222b7c4f3] (rid 117177) by mistachkin on 2004-06-22 17:00:13:

    1. icomment:
      
      
      File Added - 91488: threadStorage4.zip
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  15. Ticket change [c27feb9a8c] (rid 111495) by dgp on 2004-06-22 20:58:37:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      deleted.  will produce
      another after some testing.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  16. Ticket change [79d4f5f231] (rid 90200) by dgp on 2004-06-22 20:58:38:

    1. icomment:
      
      
      File Deleted - 91427: 
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  17. Ticket change [045c5fa71b] (rid 119986) by dgp on 2004-06-22 21:29:26:

    1. icomment:
      
      
      File Added - 91517: 976496.patch
      
      Logged In: YES 
      user_id=80530
      
      
      Here's the patch as a
      single unidiff patch file.
      
      With this patch I see
      processes hang at
      the end of their run.  Perhaps
      some Mutex error during
      finalization?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  18. Ticket change [8925917792] (rid 131982) by dgp on 2004-06-23 02:36:34:

    1. icomment:
      
      
      File Deleted - 91517: 
      
      
      
      File Added - 91548: 976496.patch
      
      Logged In: YES 
      user_id=80530
      
      Updated patch file 976496.patch
      corrects the hang.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  19. Ticket change [b16cc55baf] (rid 98139) by mistachkin on 2004-06-23 02:37:20:

    1. icomment:
      
      
      File Deleted - 91488: 
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  20. Ticket change [870989013e] (rid 131624) by mistachkin on 2004-06-23 03:12:27:

    1. icomment:
      
      
      File Added - 91550: threadStorage5.zip
      
      Logged In: YES 
      user_id=113501
      
      
      New patch, fixes dgp's hang and cosmetic fixes.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  21. Ticket change [8accdc755e] (rid 127452) by dgp on 2004-06-23 03:40:35:

    1. icomment:
      
      
      File Deleted - 91548: 
      
      
      
      File Added - 91554: 976496.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  22. Ticket change [58b172498e] (rid 117843) by mistachkin on 2004-06-23 05:06:36:

    1. icomment:
      
      
      File Deleted - 91550: 
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  23. Ticket change [42a06f01d4] (rid 116416) by mistachkin on 2004-06-23 05:07:33:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      Patch updated, fixes non-threaded warnings on Win32 with 
      VC++.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  24. Add attachment "threadStorage5.zip" [1f26b4a4f9] (rid 91095) by mistachkin on 2004-06-23 05:07:34.

  25. Ticket change [d18d29196f] (rid 113371) by mistachkin on 2004-06-23 05:07:34:

    1. icomment:
      
      
      File Added - 91562: threadStorage5.zip
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  26. Ticket change [9db3332e0b] (rid 96354) by kennykb on 2004-06-24 00:13:05:

    1. assignee changed to: "mistachkin"
    2. icomment:
      Logged In: YES 
      user_id=99768
      
      Tested the version of threadStorage5.zip uploaded on
      2004-06-22 18:07, using configure/make on Windows in
      all combinations of:
      
      {mingw, vc++}
      
      {enable-threads and without}
      
      {--enable-symbols and --enable-symbols=mem}
      
      No new compilation errors/warnings nor test failures.
      
      
    3. login: "kennykb"
    4. mimetype: "text/plain"
    5. username: "kennykb"
  27. Add attachment "976496.patch" [554824931d] (rid 94107) by dgp on 2004-06-24 03:35:43.

  28. Ticket change [3fefae8b06] (rid 121543) by dgp on 2004-06-24 03:35:43:

    1. icomment:
      
      
      File Deleted - 91554: 
      
      
      
      File Added - 91692: 976496.patch
      
      Logged In: YES 
      user_id=80530
      
      976496.patch updated to 
      match the new threadStorage5.zip
      
      Applies, compiles, and tests with
      no new failures, both with and
      without --enable-threads on both
      Solaris and Linux/Alpha (64-bit).
      
      I'd say it's ready to commit.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  29. Ticket change [4339faf2f6] (rid 116521) by mistachkin on 2004-06-24 15:18:54:

    1. closedate changed to: "2004-06-24T08:18:54"
    2. closer changed to: "mistachkin"
    3. resolution changed to: "Accepted"
    4. status changed to: "Closed"