Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- jit/emulate.c | 16 ++++------------ 1 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/jit/emulate.c b/jit/emulate.c index 615ba0f..2b89785 100644 --- a/jit/emulate.c +++ b/jit/emulate.c @@ -42,12 +42,8 @@ int emulate_lcmp(long long value1, long long value2) long long emulate_ldiv(long long value1, long long value2) { if (value2 == 0) { - struct object *e; - - e = new_exception("java/lang/ArithmeticException", "division by zero"); - - signal_exception(e); - + signal_new_exception( + "java/lang/ArithmeticException", "division by zero"); return 0; } @@ -57,12 +53,8 @@ long long emulate_ldiv(long long value1, long long value2) long long emulate_lrem(long long value1, long long value2) { if (value2 == 0) { - struct object *e; - - e = new_exception("java/lang/ArithmeticException", "division by zero"); - - signal_exception(e); - + signal_new_exception( + "java/lang/ArithmeticException", "division by zero"); return 0; } -- 1.6.0.6 ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel