/* global.h - global definitions
- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
- R. Grafl, A. Krall, C. Kruegel, C. Oates, R. Obermaisser,
- M. Probst, S. Ring, E. Steiner, C. Thalinger, D. Thuernbeck,
- P. Tomsich, J. Wenninger
+ Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
+ R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
+ C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
+ Institut f. Computersprachen - TU Wien
This file is part of CACAO.
Changes: Mark Probst
Philipp Tomsich
Edwin Steiner
+ Joseph Wenninger
- $Id: global.h 1621 2004-11-30 13:06:55Z twisti $
+ $Id: global.h 1735 2004-12-07 14:33:27Z twisti $
*/
#include <semaphore.h>
#endif
+/* define path to rt.jar plus ending : ****************************************/
+
+#define CACAO_LIBRARY_PATH "/jre/lib/"ARCH_DIR"/"
+#define CACAO_RT_JAR_PATH "/jre/lib/rt.jar:"
+
+
#define STATISTICS /* if enabled collects program statistics */
/*
/* data structure for storing information needed for a stacktrace across native functions*/
+
+typedef struct native_stackframeinfo native_stackframeinfo;
+
struct native_stackframeinfo {
void *oldThreadspecificHeadValue;
void **addressOfThreadspecificHead;
methodinfo *method;
+#ifdef __ALPHA__
+ void *savedpv;
+#endif
+ void *beginOfJavaStackframe; /*only used if != 0*/
void *returnToFromNative;
#if 0
#endif
};
-typedef struct native_stackframeinfo native_stackframeinfo;
+
+typedef struct stacktraceelement stacktraceelement;
struct stacktraceelement {
#if POINTERSIZE == 8
methodinfo *method;
};
-typedef struct stacktraceelement stacktraceelement;
+
+typedef struct stackTraceBuffer stackTraceBuffer;
+
+struct stackTraceBuffer {
+ s4 needsFree;
+ stacktraceelement *start;
+ s4 size;
+ s4 full;
+};
+
+
/* data structure for calls from c code to java methods */