diff src/share/vm/graal/graalRuntime.cpp @ 9471:5fa54bf57f8c

replaced exception_handler_nofpu assembler stub with a compiled stub (GRAAL-81) generalized stub printf mechanism to also serve as a fatal VM exit message
author Doug Simon <doug.simon@oracle.com>
date Wed, 01 May 2013 17:46:12 +0200
parents 3e7d22d31f7e
children 3d3da5a588bb
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.cpp	Wed May 01 15:53:17 2013 +0200
+++ b/src/share/vm/graal/graalRuntime.cpp	Wed May 01 17:46:12 2013 +0200
@@ -402,7 +402,6 @@
     }
   }
 
-  thread->set_vm_result(exception());
   // Set flag if return address is a method handle call site.
   thread->set_is_method_handle_return(nm->is_method_handle_return(pc));
 
@@ -570,10 +569,14 @@
   tty->print(buf, v1, v2, v3);
 JRT_END
 
-JRT_LEAF(void, GraalRuntime::stub_printf(jlong format, jlong v1, jlong v2, jlong v3))
+JRT_LEAF(void, GraalRuntime::vm_message(jboolean vmError, jlong format, jlong v1, jlong v2, jlong v3))
   ResourceMark rm;
   char *buf = (char*) (address) format;
-  tty->print(buf, v1, v2, v3);
+  if (vmError) {
+    fatal(err_msg(buf, v1, v2, v3));
+  } else {
+    tty->print(buf, v1, v2, v3);
+  }
 JRT_END
 
 JRT_ENTRY(void, GraalRuntime::log_primitive(JavaThread* thread, jchar typeChar, jlong value, jboolean newline))