|
2008-08-14
| ||
| 06:14 | • Closed ticket [2017264fff]: NRE: remove unused TclpThreadGetStackSize() plus... artifact: 64f40a6c50 user: das | |
|
2008-08-09
| ||
| 06:35 | • Ticket [2017264fff]: 5 changes artifact: 17c135e17e user: das | |
| 06:27 | • Ticket [2017264fff]: 4 changes artifact: ae4cf6fc7e user: msofer | |
|
2008-08-06
| ||
| 23:58 | • Ticket [2017264fff]: 4 changes artifact: 4ee6cbcb24 user: jenglish | |
|
2008-08-05
| ||
| 15:01 | • Ticket [2017264fff]: 4 changes artifact: a7107c1636 user: jenglish | |
| 15:01 | • Add attachment 2017264.patch to ticket [2017264fff] artifact: 58926e6616 user: jenglish | |
|
2008-07-30
| ||
| 08:14 | • Ticket [2017264fff] NRE: remove unused TclpThreadGetStackSize() status still... artifact: e0bd34962b user: msofer | |
| 08:05 | • Open ticket [2017264fff]. artifact: c7a1af3ae0 user: das | |
| 06:41 | • Pending ticket [2017264fff]. artifact: 550b175a0d user: msofer | |
|
2008-07-14
| ||
| 11:23 | • Ticket [2017264fff]: 4 changes artifact: a0008564b8 user: mistachkin | |
|
2008-07-13
| ||
| 22:56 | • Ticket [2017264fff]: 4 changes artifact: a1f00021f9 user: msofer | |
| 22:47 | • Ticket [2017264fff]: 4 changes artifact: c8de3ed64e user: das | |
| 22:24 | • Ticket [2017264fff]: 4 changes artifact: 5820c452bd user: msofer | |
| 13:26 | • New ticket [2017264fff]. artifact: c3eabacab8 user: das | |
NRE: remove unused TclpThreadGetStackSize()
Closed / Fixed2017264fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-07-13 13:26:00
with the stack checking removed in NRE, TclpThreadGetStackSize() in tclUnixThrd.c is no longer used and could be removed, along with the config checks for HAVE_PTHREAD_ATTR_SETSTACKSIZE and HAVE_PTHREAD_GET_STACKSIZE_NP.
msoferplain2008-07-13 22:24:07
Logged In: YES user_id=148712 Originator: NO HAVE_PTHREAD_ATTR_SETSTACKSIZE seems to be used in TclpThreadCreate too.
dasplain2008-07-13 22:47:50
Logged In: YES user_id=90580 Originator: YES yep, noticed that after posting the bug as well... made me wonder whether the stack size manipulation in TclpThreadCreate() is still needed now ?
msoferplain2008-07-13 22:56:04
Logged In: YES user_id=148712 Originator: NO I'd say "still needed": TclpThreadCreate's "stackSize" is part of the public API (via the Tcl_CreateThread)
mistachkinplain2008-07-14 11:23:28
Logged In: YES user_id=113501 Originator: NO I agree with still needed.
msofer Pending ticket [2017264fff].
[History diff]2008-07-30 06:41:23
dasplain2008-07-30 08:05:30
Logged In: YES user_id=90580 Originator: YES no, not invalid... TclpThreadGetStackSize() and the HAVE_PTHREAD_GET_STACKSIZE_NP configure check are definitely no longer needed and can be removed.
msoferplain2008-07-30 08:14:05
Logged In: YES user_id=148712 Originator: NO I Know it is not needed in any of the areas where I am familiar; threading stuff is not one of them. Reassigning to let the knowledgeable people shoot it out. Yes, I am a coward :P
jenglishplain2008-08-05 15:01:54
File Added - 287115: 2017264.patch Logged In: YES user_id=68433 Originator: NO TclpThreadGetStackSize() can definitely be removed: there are no callers remaining in-tree, and since it's MODULE_SCOPE there are no external callers either. (Plus, it doesn't work.) With that gone, TclpPthreadGetAttrs is no longer used, so the wodge of horrid #ifdeffery in tclUnixPort.h that defines it can go away too. That wodge of horrid #ifdeffery is the only user of the macros HAVE_PTHREAD_ATTR_GET_NP, HAVE_PTHREAD_GETATTR_NP, GETATTRNP_NOT_DECLARED, and ATTRGETNP_NOT_DECLARED, so a big chunk of tcl.m4 can go away too. Looking in the same area: pthread_get_stacksize_np isn't used anymore either; the autoconf check for that can go too. That gets rid of all references to "pthread_*_np" in tree, which will help portability (the "_np" stands for "_nonportable") and maintainability. File Added: 2017264.patch
jenglishplain2008-08-06 23:58:41
Logged In: YES user_id=68433 Originator: NO @das -- could you apply the patch and rerun autoconf? I don't seem to have autoconf 2.61 anywhere.
msoferplain2008-08-09 06:27:59
Logged In: YES user_id=148712 Originator: NO It'd be nice if this made it for the 8.6a2 release, so that we get early screaming (if any)
dasplain2008-08-09 06:35:28
Logged In: YES user_id=90580 Originator: YES agreed, will deal with it tomorrow, along with the dtrace NRE patch (any progress with the help you promised with that miguel ? ;-)
dasplain2008-08-14 06:14:50
Logged In: YES user_id=90580 Originator: YES comitted
Log in (anonymous is fine) to add a comment.
Attachments:
- 2017264.patch [download] added by jenglish on 2008-08-05 15:01:54. [details]