Issue #3187 has been updated by Hiroshi Nakamura.

Assignee set to Koichi Sasada

How about;

  t = Thread.new(stack_size: 1024)
  t.stack_size = 1024
  t[:initial_tls_hash] = {}
  t.run {
    ...
  }

----------------------------------------
Feature #3187: Allow dynamic Fiber stack size
https://bugs.ruby-lang.org/issues/3187#change-24693

Author: Mike Perham
Status: Open
Priority: Normal
Assignee: Koichi Sasada
Category: core
Target version: 2.0.0


=begin
 I'd like a way to increase the size of the Fiber stack dynamically so when my program starts, I can set it to whatever value I need for the code I'm running.  4KB is too easy to run into problems when running recursive code but settling on any arbitrary static value seems pointless to me.
=end



-- 
http://bugs.ruby-lang.org/