[ruby-core:88724] Re: [Ruby trunk Bug#15041] [PATCH] cont.c: set th->root_fiber to current fiber at fork

From: Eric Wong <normalperson@...>
Date: 2018-08-29 08:09:41 UTC
List: ruby-core #88724
ko1@atdot.net wrote:
> (I'm not sure why fork removes other fibers, but)

	fib = Fiber.new { puts " HI" }
	fork { fib.resume }
	Process.waitall

Shows me: `resume': fiber called across stack rewinding barrier (FiberError)

If we reimplement Fiber entirely with Ruby bytecode, then we
can we can jump around anywhere (and migrate fibers across
threads).  But we lose C extension compatibility.

> I think it is okay. let's try.

OK, r64589

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

In This Thread