Contact: cacao@cacaojvm.org
Authors: Reinhard Grafl
-
- Changes: Mark Probst
+ Mark Probst
Philipp Tomsich
Christian Thalinger
- Edwin Steiner
+ Edwin Steiner
- $Id: headers.c 5340 2006-09-05 21:15:02Z twisti $
+ $Id: headers.c 5973 2006-11-12 15:01:14Z edwin $
*/
# include <ucontext.h>
#endif
-#include "mm/boehm.h"
+#include "mm/gc-common.h"
#include "mm/memory.h"
#include "native/include/java_lang_String.h"
#include "native/include/java_lang_Throwable.h"
/* Invocation API variables ***************************************************/
_Jv_JavaVM *_Jv_jvm; /* denotes a Java VM */
-
+char *_Jv_bootclasspath;
#if defined(ENABLE_INTRP)
/* dummy interpreter stack to keep the compiler happy */
#endif
+#if !defined(NDEBUG)
+/* dummy variable */
+bool inline_debug_log = false;
+#endif
+
+
/* for raising exceptions from native methods *********************************/
#if !defined(ENABLE_THREADS)
void vm_abort(const char *text, ...)
{
+ va_list ap;
+
+ /* print the log message */
+
+ va_start(ap, text);
+ vfprintf(stderr, text, ap);
+ va_end(ap);
+
+ /* now abort the VM */
+
abort();
}
void *asm_switchstackandcall(void *stack, void *func, void **stacktopsave, void * p) { return NULL; }
void asm_handle_builtin_exception(classinfo *c) {}
-void asm_abstractmethoderror(void) {}
#if defined(ENABLE_JIT)
+void asm_abstractmethoderror(void) {}
void asm_getclassvalues_atomic(vftbl_t *super, vftbl_t *sub, castinfo *out) {}
#endif
#if defined(ENABLE_INTRP)
+void intrp_asm_abstractmethoderror(void) {}
void intrp_asm_getclassvalues_atomic(vftbl_t *super, vftbl_t *sub, castinfo *out) {}
#endif
}
void typeinfo_print(FILE *file,typeinfo *info,int indent) {}
+void typeinfo_print_short(FILE *file,typeinfo *info) {}
void exceptions_print_exception(java_objectheader *xptr) {}
+void stacktrace_dump_trace(threadobject *thread) {}
void stacktrace_print_trace(java_objectheader *xptr) {}
java_objectarray *stacktrace_getClassContext() { return NULL; }
void code_free_code_of_method(methodinfo *m) {}
+void jit_invalidate_code(methodinfo *m) {}
+
/* exception functions ********************************************************/
}
-java_objectheader *new_nullpointerexception(void)
+java_objectheader *exceptions_new_nullpointerexception(void)
{
fprintf(stderr, "%s", string_java_lang_NullPointerException);
exit(1);
void exceptions_throw_nullpointerexception(void)
{
- (void) new_nullpointerexception();
+ (void) exceptions_new_nullpointerexception();
}
u4 newsize,i;
if (!dopadding) return;
- newsize = ALIGN(outputsize, len);
+ newsize = MEMORY_ALIGN(outputsize, len);
for (i = outputsize; i < newsize; i++) fprintf(file, " u1 pad%d\n", (int) i);
outputsize = newsize;