- va_start(ap, message);
- vfprintf(stderr, message, ap);
- va_end(ap);
-
- fputc('\n', stderr);
-
- exit(1);
-}
-
-
-void exceptions_throw_outofmemory_exit(void)
-{
- fprintf(stderr, "java.lang.InternalError: Out of memory\n");
- exit(1);
-}
-
-
-java_objectheader *new_exception(const char *classname)
-{
- fprintf(stderr, "%s\n", classname);
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-java_objectheader *new_exception_message(const char *classname, const char *message)
-{
- fprintf(stderr, "%s: %s\n", classname, message);
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-java_objectheader *new_exception_utfmessage(const char *classname, utf *message)
-{
- fprintf(stderr, "%s: ", classname);
- utf_display_printable_ascii(message);
- fputc('\n', stderr);
-
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-java_objectheader *new_exception_javastring(const char *classname,
- java_lang_String *message)
-{
- fprintf(stderr, "%s: ", classname);
- /* TODO print message */
- fputc('\n', stderr);
-
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-java_objectheader *new_classformaterror(classinfo *c, const char *message, ...)
-{
- va_list ap;
-
- utf_display_printable_ascii(c->name);
- fprintf(stderr, ": ");
-
- va_start(ap, message);
- vfprintf(stderr, message, ap);
- va_end(ap);
-
- fputc('\n', stderr);
-
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-void exceptions_throw_classformaterror(classinfo *c, const char *message, ...)
-{
- va_list ap;
-
- va_start(ap, message);
- (void) new_classformaterror(c, message, ap);
- va_end(ap);
-}
-
-
-java_objectheader *new_classnotfoundexception(utf *name)
-{
- fprintf(stderr, "java.lang.ClassNotFoundException: ");
- utf_fprint_printable_ascii(stderr, name);
- fputc('\n', stderr);
-
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-java_objectheader *new_noclassdeffounderror(utf *name)
-{
- fprintf(stderr, "java.lang.NoClassDefFoundError: ");
- utf_fprint_printable_ascii(stderr, name);
- fputc('\n', stderr);
-
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-java_objectheader *exceptions_new_linkageerror(const char *message,
- classinfo *c)
-{
- fprintf(stderr, "java.lang.LinkageError: %s",message);
- if (c) {
- utf_fprint_printable_ascii_classname(stderr, c->name);
- }
- fputc('\n', stderr);
-
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-java_objectheader *exceptions_new_nosuchmethoderror(classinfo *c,
- utf *name, utf *desc)
-{
- fprintf(stderr, "java.lang.NoSuchMethodError: ");
- utf_fprint_printable_ascii(stderr, c->name);
- fprintf(stderr, ".");
- utf_fprint_printable_ascii(stderr, name);
- utf_fprint_printable_ascii(stderr, desc);
- fputc('\n', stderr);
-
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-java_objectheader *new_internalerror(const char *message, ...)
-{
- va_list ap;
-
- fprintf(stderr, "%s: ", string_java_lang_InternalError);
-
- va_start(ap, message);
- vfprintf(stderr, message, ap);
- va_end(ap);
-
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-java_objectheader *new_unsupportedclassversionerror(classinfo *c, const char *message, ...)
-{
- va_list ap;
-
- fprintf(stderr, "%s: ", string_java_lang_UnsupportedClassVersionError);
-
- utf_display_printable_ascii(c->name);
- fprintf(stderr, ": ");
-
- va_start(ap, message);
- vfprintf(stderr, message, ap);
- va_end(ap);
-
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-java_objectheader *new_illegalmonitorstateexception(void)
-{
- fprintf(stderr, "%s", string_java_lang_IllegalMonitorStateException);
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-java_objectheader *new_negativearraysizeexception(void)
-{
- fprintf(stderr, "%s", string_java_lang_NegativeArraySizeException);
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-void exceptions_throw_negativearraysizeexception(void)
-{
- (void) new_negativearraysizeexception();
-}
-
-
-java_objectheader *new_nullpointerexception(void)
-{
- fprintf(stderr, "%s", string_java_lang_NullPointerException);
- exit(1);
-
- /* keep compiler happy */
-
- return NULL;
-}
-
-
-void exceptions_throw_nullpointerexception(void)
-{
- (void) new_nullpointerexception();
-}
-
-
-void classnotfoundexception_to_noclassdeffounderror(void)
-{
-}
-
-/* machine dependent stuff ****************************************************/
-
-#if defined(USE_THREADS) && defined(NATIVE_THREADS)
-threadcritnode asm_criticalsections;
-void thread_restartcriticalsection(ucontext_t *uc) {}
-#endif
-
-void md_param_alloc(methoddesc *md) {}
-
-
-#if defined(ENABLE_INTRP)
-void print_dynamic_super_statistics(void) {}
-#endif