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

  • From: "hamish" <trac@xxxxxxxxxxxx>
  • Date: Sun, 12 Feb 2012 23:14:50 -0000

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

Comment (by hamish):

 Currently the {{{B_STACK_AREA}}} flag is passed to
 {{{create_area_etc()}}}, which makes it pass the
 {{{USER_STACK_GUARD_PAGES}}} constant to
 {{{VMCacheFactory::CreateAnonymousCache()}}}.

 Would it be desirable to add an extra parameter to {{{create_area_etc()}}}
 for guard size? Or is it possible to simply guard the pages manually with
 {{{_user_set_memory_protection()}}} in {{{create_thread_user_stack()}}}?

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

Other related posts: