[ruby-core:88927] Re: [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical

From: Eric Wong <normalperson@...>
Date: 2018-09-09 17:26:04 UTC
List: ruby-core #88927
ko1@atdot.net wrote:
> > ec->vm_stack is always allocated with malloc, so stacks for root
> > fiber (thread stack) and non-root fibers can be shared as long
> > as the size is the same.
> 
> I'm not sure why we can share the VM stack. If we run root fiber and non-root fiber with switching, it will conflicts.
> Do I misunderstand something?

Sorry, I mean they can share VM stack cache; not the in-use VM stack.

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread