[haiku-bugs] Re: [Haiku] #8233: Patch for pthread_attr_getguardsize

  • From: "hamish" <trac@xxxxxxxxxxxx>
  • Date: Sat, 11 Feb 2012 22:02:49 -0000

#8233: Patch for pthread_attr_getguardsize
--------------------------+------------------------------------------------
   Reporter:  unitedroad  |      Owner:  nobody
       Type:              |     Status:  new
  enhancement             |  Milestone:  R1
   Priority:  normal      |    Version:  R1/alpha3
  Component:              |   Keywords:  pthread, pthread_attr_getguardsize
  System/POSIX            |   Blocking:
 Resolution:              |   Platform:  All
 Blocked By:              |
Has a Patch:  1           |
--------------------------+------------------------------------------------

Comment (by hamish):

 I can implement the actual functionality, though I have a question:

 Should get_thread_info return a stack_base and stack_end that include the
 guard pages or not? Currently, if I'm not mistaken, the range it returns
 includes the guard pages (though it excludes the TLS space). To me it
 seems more consistent (and useful) for it to return only the usable range
 of the stack, though I'm not sure what the behaviour was on BeOS, and this
 might break compatibility.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8233#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: