ObjectSpace not working with 1.9 mode
-------------------------------------
Key: JRUBY-5721
URL: http://jira.codehaus.org/browse/JRUBY-5721
Project: JRuby
Issue Type: Bug
Reporter: Mike Perham
Assignee: Thomas E Enebo
I can't seem to turn on ObjectSpace:
{noformat}
> jruby --1.9 -X+O -S rake
(in /Users/mperham/src/git/girl_friday)
jruby 1.6.1 (ruby-1.9.2-p136) (2011-04-12 85838f6) (Java HotSpot(TM) 64-Bit
Server VM 1.6.0_24) [darwin-x86_64-java]
Loaded suite
/Users/mperham/.rvm/gems/jruby-1.6.1/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
..E..E
Finished in 0.542000 seconds.
1) Error:
test_should_allow_graceful_shutdown(TestGirlFriday):
RuntimeError: ObjectSpace is disabled; each_object will only work with Class,
pass -X+O to enable
org/jruby/RubyObjectSpace.java:167:in `each_object'
org/jruby/RubyEnumerator.java:189:in `each'
/Users/mperham/src/git/girl_friday/lib/girl_friday.rb:32:in `shutdown!'
/Users/mperham/src/git/girl_friday/test/test_girl_friday.rb:131:in
`test_should_allow_graceful_shutdown'
/Users/mperham/src/git/girl_friday/test/helper.rb:19:in `async_test'
/Users/mperham/src/git/girl_friday/test/test_girl_friday.rb:122:in
`test_should_allow_graceful_shutdown'
org/jruby/RubyBasicObject.java:1667:in `__send__'
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email