assets/src/org/ruboto/JRubyAdapter.java in ruboto-0.8.1 vs assets/src/org/ruboto/JRubyAdapter.java in ruboto-0.9.0.rc.0
- old
+ new
@@ -236,11 +236,12 @@
byte[] arrayForHeapAllocation = new byte[13 * 1024 * 1024];
arrayForHeapAllocation = null;
// END Ruboto HeapAlloc
setDebugBuild(appContext);
Log.d("Setting up JRuby runtime (" + (isDebugBuild ? "DEBUG" : "RELEASE") + ")");
- System.setProperty("jruby.compile.mode", "OFF"); // OFF OFFIR
+ System.setProperty("jruby.compile.mode", "OFF"); // OFF OFFIR JITIR? FORCEIR
+ // System.setProperty("jruby.compile.backend", "DALVIK");
System.setProperty("jruby.bytecode.version", "1.6");
System.setProperty("jruby.interfaces.useProxy", "true");
System.setProperty("jruby.management.enabled", "false");
System.setProperty("jruby.objectspace.enabled", "false");
System.setProperty("jruby.thread.pooling", "true");
@@ -250,9 +251,13 @@
System.setProperty("jruby.backtrace.style", "normal"); // normal raw full mri
// Uncomment these to debug/profile Ruby source loading
// System.setProperty("jruby.debug.loadService", "true");
// System.setProperty("jruby.debug.loadService.timing", "true");
+
+ // Used to enable JRuby to generate proxy classes
+ System.setProperty("jruby.ji.proxyClassFactory", "org.ruboto.DalvikProxyClassFactory");
+ System.setProperty("jruby.class.cache.path", appContext.getDir("dex", 0).getAbsolutePath());
ClassLoader classLoader;
Class<?> scriptingContainerClass;
String apkName = null;