Artifacts Associated With Ticket 976496ffffffffff
Ticket change [824e69334c] (rid 117214) by mistachkin on 2004-06-21 03:14:13:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "None"
- priority initialized to: "9 Immediate"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mistachkin"
- subsystem initialized to: "49. Threading"
- title initialized to:
complex Tcl/Tk apps run out of TLS indexes on Win32...
- type initialized to: "Patch"
Ticket change [36d063227c] (rid 107169) by mistachkin on 2004-06-21 10:14:13:
- icomment:
File Added - 91318: threadStorage.zip
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [cc4886adcf] (rid 95668) by dkf on 2004-06-21 15:57:58:
- assignee changed to: "nobody"
- subsystem changed to: "None"
Ticket change [1373b70418] (rid 124221) by dkf on 2004-06-21 15:58:48:
- subsystem changed to: "49. Threading"
Ticket change [9e198f18fa] (rid 96419) by dkf on 2004-06-21 20:08:04:
- assignee changed to: "kennykb"
- 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... :^)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [3570134eef] (rid 106931) by mistachkin on 2004-06-22 04:01:46:
- 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".
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [f79c89de23] (rid 91404) by mistachkin on 2004-06-22 04:01:47:
- icomment:
File Added - 91421: threadStorage2.zip
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [8deb28c998] (rid 128025) by dgp on 2004-06-22 04:49:09:
- 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`
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [52e7f04213] (rid 126402) by mistachkin on 2004-06-22 06:49:11:
- icomment:
File Deleted - 91421:
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [f8f0139f8c] (rid 91622) by mistachkin on 2004-06-22 06:51:28:
- icomment:
File Added - 91438: threadStorage3.zip Logged In: YES user_id=113501 This new patch should fix the previous problems.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [85bb3d1938] (rid 131366) by mistachkin on 2004-06-22 06:54:12:
- 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?
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [aa61de5abc] (rid 100915) by mistachkin on 2004-06-22 16:01:43:
- icomment:
File Deleted - 91438:
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [78fcfeff40] (rid 90047) by mistachkin on 2004-06-22 17:00:10:
- 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?
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [8222b7c4f3] (rid 117177) by mistachkin on 2004-06-22 17:00:13:
- icomment:
File Added - 91488: threadStorage4.zip
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [c27feb9a8c] (rid 111495) by dgp on 2004-06-22 20:58:37:
- icomment:
Logged In: YES user_id=80530 deleted. will produce another after some testing.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [79d4f5f231] (rid 90200) by dgp on 2004-06-22 20:58:38:
- icomment:
File Deleted - 91427:
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [045c5fa71b] (rid 119986) by dgp on 2004-06-22 21:29:26:
- 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?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [8925917792] (rid 131982) by dgp on 2004-06-23 02:36:34:
- icomment:
File Deleted - 91517: File Added - 91548: 976496.patch Logged In: YES user_id=80530 Updated patch file 976496.patch corrects the hang.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b16cc55baf] (rid 98139) by mistachkin on 2004-06-23 02:37:20:
- icomment:
File Deleted - 91488:
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [870989013e] (rid 131624) by mistachkin on 2004-06-23 03:12:27:
- icomment:
File Added - 91550: threadStorage5.zip Logged In: YES user_id=113501 New patch, fixes dgp's hang and cosmetic fixes.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [8accdc755e] (rid 127452) by dgp on 2004-06-23 03:40:35:
- icomment:
File Deleted - 91548: File Added - 91554: 976496.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [58b172498e] (rid 117843) by mistachkin on 2004-06-23 05:06:36:
- icomment:
File Deleted - 91550:
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [42a06f01d4] (rid 116416) by mistachkin on 2004-06-23 05:07:33:
- icomment:
Logged In: YES user_id=113501 Patch updated, fixes non-threaded warnings on Win32 with VC++.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Add attachment "threadStorage5.zip" [1f26b4a4f9] (rid 91095) by mistachkin on 2004-06-23 05:07:34.
Ticket change [d18d29196f] (rid 113371) by mistachkin on 2004-06-23 05:07:34:
- icomment:
File Added - 91562: threadStorage5.zip
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [9db3332e0b] (rid 96354) by kennykb on 2004-06-24 00:13:05:
- assignee changed to: "mistachkin"
- 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. - login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
Add attachment "976496.patch" [554824931d] (rid 94107) by dgp on 2004-06-24 03:35:43.
Ticket change [3fefae8b06] (rid 121543) by dgp on 2004-06-24 03:35:43:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [4339faf2f6] (rid 116521) by mistachkin on 2004-06-24 15:18:54:
- closedate changed to: "2004-06-24T08:18:54"
- closer changed to: "mistachkin"
- resolution changed to: "Accepted"
- status changed to: "Closed"