Opened 7 years ago

Closed 7 years ago

#9959 closed bug (fixed)

pthread minimum stack not adjusted to match haiku change

Reported by: Pete Owned by: pdziepak
Priority: high Milestone: R1
Component: System/POSIX Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All


when Pawel changed MIN_USER_STACK_SIZE ( the PTHREAD_STACK_MIN define in posix/limits.h never got increased to match.

Ruby uses this minimum for its timer thread, so it crashes in newer revs of haiku. (I've patched my own copy of ruby temporarily to bypass this.)

Is a submitted patch needed for this small a change? I haven't bothered to fix the haiku source itself yet, but if needed I'll do so.

Change History (3)

comment:1 by anevilyak, 7 years ago

Owner: changed from nobody to pdziepak
Status: newassigned
Version: R1/alpha4.1R1/Development

comment:2 by korli, 7 years ago

IMO it would be better to define PTHREAD_STACK_MIN and MIN_USER_STACK_SIZE in terms of B_PAGE_SIZE (ie (B_PAGE_SIZE << 1).

comment:3 by pdziepak, 7 years ago

Resolution: fixed
Status: assignedclosed

Thanks for helping with this. Fixed in hrev46078.

Note: See TracTickets for help on using tickets.