From 9975a556fa5827329beb492235380630cbe2200e Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 20 Jul 2009 14:11:41 -0600 Subject: [PATCH] implement VMRuntime.exit --- src/gnu.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/gnu.cpp b/src/gnu.cpp index 652217b352..0b27ffbc72 100644 --- a/src/gnu.cpp +++ b/src/gnu.cpp @@ -353,6 +353,20 @@ Avian_java_lang_VMRuntime_gc Avian_java_lang_Runtime_gc(t, 0, 0); } +extern "C" JNIEXPORT void JNICALL +Avian_java_lang_VMRuntime_runFinalizationForExit +(Thread*, object, uintptr_t*) +{ + // ignore +} + +extern "C" JNIEXPORT void JNICALL +Avian_java_lang_VMRuntime_exit +(Thread*, object, uintptr_t* arguments) +{ + exit(arguments[0]); +} + extern "C" JNIEXPORT int64_t JNICALL Avian_avian_SystemClassLoader_findClass (Thread*, object, uintptr_t*);