[tarantool-patches] Re: [PATCH 2/2] lib/core/fiber: Allow to extend default stack size

  • From: Konstantin Osipov <kostja@xxxxxxxxxxxxx>
  • To: Cyrill Gorcunov <gorcunov@xxxxxxxxx>
  • Date: Tue, 2 Apr 2019 10:14:11 +0300

* Cyrill Gorcunov <gorcunov@xxxxxxxxx> [19/04/02 01:09]:

I don't think we should bother with making sure the stack is right
for all fibers. You set the stack size, then you start fibers
which depend on it.

Kostja, "require('fiber').cfg{stack_size=value})" implies that
lua read and parse it, but lua *itself* runs inside a fiber where
we've the stack size already allocated and what is worse its size
is compiled in. Next time when "readline" developers increase *own*
stack size we hit the same bug. Users simply won't have a chance to
run tarantool, instead they will have to wait us to increase default
stack size and rebuild the program.

Yes. We could remedy this by making the first (REPL or script)
fiber stack sufficiently large at once.

-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov

Other related posts: