fixed ObjectSpace with jruby