exits prematurely.
# Authors: Reinhard Grafl EMAIL: cacao@complang.tuwien.ac.at
# Andreas Krall EMAIL: cacao@complang.tuwien.ac.at
#
-# Last Change: $Id: Makefile 54 1998-11-10 12:12:02Z phil $
+# Last Change: $Id: Makefile 70 1998-11-16 16:49:18Z schani $
#
#
# ATTENTION: This version of the makefile only works with gmake.
##################### generation of the excutable ##############################
# Enabling/disabling thread support
-# USE_THREADS = YES
-USE_THREADS = NO
+USE_THREADS = YES
+#USE_THREADS = NO
ifeq ($(USE_THREADS),YES)
THREAD_OBJ = threads/threads.a
#LFLAGS = -lm
CC = cc
-CFLAGS = -g3 -ieee $(THREAD_CFLAGS)
+CFLAGS = -g -ieee $(THREAD_CFLAGS)
#CFLAGS = -O3 -ieee $(THREAD_CFLAGS)
LFLAGS = -lm
#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);
}
#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);
}
/* If we only have daemons left, then everyone is dead. */
if (talive == tdaemon) {
- /* Am I suppose to close things down nicely ?? */
+ /* atexit functions get called to clean things up */
exit(0);
}
/* If we only have daemons left, then everyone is dead. */
if (talive == tdaemon) {
- /* Am I suppose to close things down nicely ?? */
+ /* atexit functions get called to clean things up */
exit(0);
}