Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.6.1
-
Component/s: Extensions
-
Labels:None
-
Environment:Applies to the cext branch
-
Number of attachments :
Description
Many Rakefiles for C extensions will load a C extension and then try to exec a sub-ruby which also loads C extensions. This will fail in JRuby due to the two JRuby runtimes being executed on the same JVM. Maybe we could do a real fork in this particular case where the C extension support is already in use on this JVM.
As headius suggested in IRC, we could also look into MVM on the C level and maybe see if C extensions might declare thread-safety, so we can decide whether to raise an InvalidRuntime on a per-extension basis.