Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

GIL lock in multithreaded environment #432

Description

@BenTalagan

It seems to me redundant with other issues, but not expressed like this specifically : when trying to run therubyracer in a thread, the whole MRI is locked until the thread times out or ends by itself.

2.3.1 :001> require "therubyracer"
2.3.1 :002> ctx = V8::Context.new timeout:10000; 
2.3.1 :003> Thread.new{ ctx.eval("while(true) {}"); puts "Done."} # => MRI is locked for 10 seconds

If I understand correctly, that issue should be solved by the 1.0 release right? (can't wait for it!)

mini_racer has that feature, but it hasn't that great bridge therubyracer has, so for the moment there is no 'ideal' solution for having a strong JS interpreter in a ruby env for the MRI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions