make sure threadobject->tid has always a non-zero value
[cacao.git] / main.c
diff --git a/main.c b/main.c
index 5f23238ca8241882ca50623c09cfefa5a26b62c5..74dd1ff0b9cbdfc85c7b6889a4ad5af595f71143 100644 (file)
--- a/main.c
+++ b/main.c
@@ -37,7 +37,7 @@
      - Calling the class loader
      - Running the main method
 
-   $Id: main.c 1406 2004-08-17 10:03:55Z twisti $
+   $Id: main.c 1424 2004-10-30 11:15:23Z motse $
 
 */
 
@@ -657,6 +657,9 @@ int main(int argc, char **argv)
        if (!class_init(class_new(utf_new_char("java/lang/System"))))
                throw_main_exception_exit();
 
+       
+       
+        jni_init();
        cacao_initializing = false;
 
        /************************* Start worker routines ********************/
@@ -890,16 +893,9 @@ void cacao_exit(s4 status)
 
 void cacao_shutdown(s4 status)
 {
-       /**** RTAprint ***/
-
        if (verbose || getcompilingtime || opt_stat) {
                log_text("CACAO terminated by shutdown");
-               if (opt_stat)
-                       print_stats();
-               if (getcompilingtime)
-                       print_times();
-               mem_usagelog(0);
-               dolog("Exit status: %d\n", (int) status);
+               dolog("Exit status: %d\n", (s4) status);
        }
 
        exit(status);