#include "builtin.h"
#include "native.h"
-#include "threads/thread.h" /* schani */
+#include "threads/thread.h"
bool compileall = false;
int newcompiler = true;
bool new_gc = false;
#endif
+static bool showmethods = false;
+static bool showconstantpool = false;
+static bool showunicode = false;
+static classinfo *topclass;
+
#ifndef USE_THREADS
void **stackbottom = 0;
#endif
void exit_handler(void)
{
+ /********************* Debug-Tabellen ausgeben ************************/
+
+ if (showmethods) class_showmethods (topclass);
+ if (showconstantpool) class_showconstantpool (topclass);
+ if (showunicode) unicode_show ();
+
#ifdef USE_THREADS
- clear_thread_flags();
+ clear_thread_flags(); /* restores standard file descriptor
+ flags */
#endif
/************************ Freigeben aller Resourcen *******************/
{
s4 i,j;
char *cp;
- classinfo *topclass;
java_objectheader *exceptionptr;
void *dummy;
u4 heapsize = 16000000;
u4 heapstartsize = 200000;
char classpath[500] = ".:/usr/local/lib/java/classes";
- bool showmethods = false;
- bool showconstantpool = false;
- bool showunicode = false;
bool startit = true;
char *specificmethodname = NULL;
char *specificsignature = NULL;
printf ("\n");
}
- /* killThread(currentThread); */
-
+ killThread(currentThread);
+ fprintf(stderr, "still here\n");
}
/************* Auf Wunsch alle Methode "ubersetzen ********************/
#endif
}
- /********************* Debug-Tabellen ausgeben ************************/
-
- if (showmethods) class_showmethods (topclass);
- if (showconstantpool) class_showconstantpool (topclass);
- if (showunicode) unicode_show ();
-
exit(0);
}