From: Suraj Kurapati Date: 2009-10-25T13:39:48+09:00 Subject: [ruby-core:26291] [Feature #2126] ruby_init_stack() - add ability to specify or query max_stack_size Issue #2126 has been updated by Suraj Kurapati. Hi Matz, Please take a look at issue #2258 (from note 16 onwards) which provides a practical example of the need for a stack-informing function in the Ruby C API. That example uses UNIX System V contexts to switch the machine stack to a pre-allocated heap region. Other[1], more cross-platform libraries, such as libpcl (portable coroutine library), are also capable of doing this. For your convenience, I will create a variation of that example which uses libpcl and other libraries to demonstrate the feasibility of this request. Thanks for your consideration. [1]: http://en.wikipedia.org/w/index.php?title=Coroutine§ion=8#Implementations_for_C ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2126 ---------------------------------------- http://redmine.ruby-lang.org