Branch: refs/heads/master Home: http://github.com/penberg/jato
Commit: 9af292da8c976b04e02d05aa0724a9d225dfa45f http://github.com/penberg/jato/commit/9af292da8c976b04e02d05aa0724a9d225dfa45f Author: Tomek Grabiec <tgrab...@gmail.com> Date: 2009-10-14 (Wed, 14 Oct 2009) Changed paths: M jit/exception.c Log Message: ----------- jit: fix print_exception_table() Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi> Commit: 91c764ae5eab70fc428ee2b7937705023b4c5961 http://github.com/penberg/jato/commit/91c764ae5eab70fc428ee2b7937705023b4c5961 Author: Tomek Grabiec <tgrab...@gmail.com> Date: 2009-10-14 (Wed, 14 Oct 2009) Changed paths: M jit/subroutine.c Log Message: ----------- jit: handle exception handlers covering subroutines in subroutine inlining. The code didn't handle the case where exception handler range covers the whole subroutine and more. Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi> Commit: a6cc64dea7ea078e173fe0bea89ad54e54038826 http://github.com/penberg/jato/commit/a6cc64dea7ea078e173fe0bea89ad54e54038826 Author: Tomek Grabiec <tgrab...@gmail.com> Date: 2009-10-14 (Wed, 14 Oct 2009) Changed paths: M include/runtime/class.h M runtime/class.c M vm/jato.c Log Message: ----------- vm: do not return jboolean from VM natives. We should return jint instead of jboolean in VM native implementations because in the latter case only least significant byte is valid and JIT code treats the native's return value as jint. This can cause that even if native function returns false as jboolean, the JIT code might see it as a jint value != 0. All java functions which return byte, boolean, char and short push J_INT onto mimic stack (according to JVM spec). To be ok with the specification and code we can do one of the following: (1) add conversion code to JIT after native calls (2) set jint as a return value for all VM native functions returning types of size less than jint. This patch provides solution nr (2). This caused the following error to happen for clojure, because native_vmthread_interrupted() returned != 0 even if vm_thread_interrupted() returned false: Exception in thread "main" java.lang.Exception: Transaction failed after reaching retry limit at clojure.lang.LockingTransaction.run(LockingTransaction.java:386) at clojure.lang.LockingTransaction.runInTransaction(LockingTransaction.java:236) at clojure.core$load_one__5814.invoke(core.clj:3731) at clojure.core$load_lib__5835.doInvoke(core.clj:3763) at clojure.lang.RestFn.applyTo(RestFn.java:147) at clojure.core$apply__3977.doInvoke(core.clj:402) at clojure.lang.RestFn.invoke(RestFn.java:443) at clojure.core$load_libs__5847.doInvoke(core.clj:3789) at clojure.lang.RestFn.applyTo(RestFn.java:142) at clojure.core$apply__3977.doInvoke(core.clj:402) at clojure.lang.RestFn.invoke(RestFn.java:443) at clojure.core$require__5853.doInvoke(core.clj:3857) at clojure.lang.RestFn.invoke(RestFn.java:413) at clojure.lang.Var.invoke(Var.java:359) at clojure.main.main(main.java:36) Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi> Commit: 9a850fa571539607743318f6576be74a80e50322 http://github.com/penberg/jato/commit/9a850fa571539607743318f6576be74a80e50322 Author: Tomek Grabiec <tgrab...@gmail.com> Date: 2009-10-14 (Wed, 14 Oct 2009) Changed paths: M Makefile A include/runtime/classloader.h A runtime/classloader.c M vm/jato.c Log Message: ----------- runtime: move VMClassLoader natives to runtime/classloader.c Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> Signed-off-by: Pekka Enberg <penb...@cs.helsinki.fi> ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel