Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify Rubinius compatibility #11

Closed
artob opened this issue May 22, 2010 · 5 comments
Closed

Verify Rubinius compatibility #11

artob opened this issue May 22, 2010 · 5 comments
Labels

Comments

@artob
Copy link
Member

artob commented May 22, 2010

Should be okay, but need to start running the specs against Rubinius 1.0 in addition to MRI 1.8/1.9 and JRuby.

@bhuga
Copy link
Contributor

bhuga commented Nov 24, 2010

My locally compiled copy pegs my machine and takes literally hours to run the tests. Will investigate at some point.

@artob
Copy link
Member Author

artob commented Nov 25, 2010

Probably a good idea to mention the (approximate) Rubinius and RDF.rb versions you tried, for anyone reading this issue later on...

@cpence
Copy link
Contributor

cpence commented Dec 7, 2011

Sure enough, this is still true (a year later), with rbx-2.0pre and RDF 0.3.4.1.

Something weird seems to be going on in ObjectSpaceCache. _id2ref hangs for a really long time, blocking up RDF. Perhaps defaulting to the WeakRef cache on Rubinius?

@cpence
Copy link
Contributor

cpence commented Dec 7, 2011

Sure enough -- hardwiring the cache to WeakRefCache in cache.rb fixes the problem.

Change over the cache selection code in cache.rb to be something like:

if RUBY_PLATFORM == 'java' || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx')
  klass = WeakRefCache
else
  klass = ObjectSpaceCache

and all should be well.

@gkellogg
Copy link
Member

Rubinius works with RDF.rb in 1.8 and 1.9 modes now (probably 2.0 too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants