From: Brent Roman Date: 2009-03-03T01:19:25+09:00 Subject: [ruby-core:22628] Re: [Feature #1218] New method needed to set and get the current recursion limit I don't do much pthreads programming. The call you want seems to be: int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize) Set the stack size attribute in a thread attributes object. See: http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man3/pthread.3.html (The prospective 'C' extension would have to get at the relevant pthread_attr_t) Here's the little test script I forgot to attach yesterday: $a=0 def x $a += 1 x end begin x rescue SystemStackError puts "After #{$a} levels" puts $! end Conrad Taylor-3 wrote: > > Issue #1218 has been updated by Conrad Taylor. > > > @Austin Ziegler - I was able to change these limits within Python using > FreeBSD, Linux, and Mac OS X operating systems. The first two are > production machines and the last is a development machine. > Otherwise, the Python examples would have > crapped out as did the Ruby recursive examples. Thus, I'm sure that it's > possible on most modern platforms to change these limits within > the Ruby language. > ---------------------------------------- > http://redmine.ruby-lang.org/issues/show/1218 > > ---------------------------------------- > http://redmine.ruby-lang.org > > > -- View this message in context: http://www.nabble.com/-ruby-core%3A22543---Feature--1218--New-method-needed-to-set-and-get-the-current-recursion-limit-tp22226204p22291197.html Sent from the ruby-core mailing list archive at Nabble.com.