I think this is one of undefined behaviors, so it would cause no compatibility issue.
We can fix it once we decide which is more desirable, shared between fibers or separate per fibers.
I think this is one of undefined behaviors, so it would cause no compatibility issue.
We can fix it once we decide which is more desirable, shared between fibers or separate per fibers.
I asked matz about it and his choice is separate between Fibers.
This issue was solved with changeset r38981.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
cont.c: fiber local svar
cont.c (cont_restore_thread): svar should be separate per fibers. [ruby-core:51331] [Bug #7678]