Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1433b5c35eadb451bb006ac96073d0a4c4730662
Ticket: 3584573fffffffffffffffffffffffffffffffff
cannot set thread stack size on linux
User & Date: dvrsn on 2012-11-06 00:50:29
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    recent versions of Linux support pthread_attr_setstacksize, but HAVE_PTHREAD_ATTR_SETSTACKSIZE is not defined for linux.  As a result, no stack size requests are handed in Tcl_CreateThread, meaning the default is always used.  On linux the default stack size is the maximum possible stack size (i.e., the RLIMIT_STACK soft limit at program start time), which is typically 8Mb.
    
    Even if stack size setting was enabled for linux, the notifier thread is created with the default size, and this is not changeable, meaning every threaded tclsh has minimum 8Mb overhead, even if no application threads are used.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dvrsn"
  10. subsystem changed to: "49. Threading"
  11. title changed to: "cannot set thread stack size on linux"
  12. type changed to: "Bug"