-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Avoid loading classes not present on Android #2471
Comments
Tried adding
i will look at using the |
When running with
|
@enebo We should avoid loading the JITCompiler class and the jsr292 classes when the compiler is disabled. Any idea how best to do that? |
in Ruby.init the instance is created. You can just check RubyInstanceConfig for compiler mode and if it is OFF then don't construct JITCompiler. |
If someone wants to add the code to make JIT conditional they can but we will not hold up pre1 for this since I am guessing there has been no 9k evaluation recently based on the inability to work around the JIT classs. Moving forward and next 9k release (pre2,rc1,...) will hopefully be working well enough. |
This is no longer relevant since Android now supports invokedynamic and method handles. |
Currently there is a har load path from org.jruby.Ruby to java.lang.invoke.MethodHandles which is not present on Android. We ned to avoid this load path when the compiler is disabled.
The text was updated successfully, but these errors were encountered: