diff src/share/vm/c1x/c1x_VMExits.hpp @ 2285:762de4b26788

turn Compiler and HotSpotTypeResolved into interfaces
author Lukas Stadler <lukas.stadler@jku.at>
date Fri, 08 Apr 2011 13:43:05 +0200
parents 569d3fe7d65c
children 34354e2e40a3
line wrap: on
line diff
--- a/src/share/vm/c1x/c1x_VMExits.hpp	Thu Apr 07 15:32:25 2011 +0200
+++ b/src/share/vm/c1x/c1x_VMExits.hpp	Fri Apr 08 13:43:05 2011 +0200
@@ -25,12 +25,10 @@
 class VMExits : public AllStatic {
 
 private:
+  static jobject _compilerPermObject;
   static jobject _vmExitsPermObject;
-  static jobject _compilerPermKlass;
-  static jobject _compilerPermObject;
   static jobject _vmExitsPermKlass;
 
-  static KlassHandle compilerKlass();
   static KlassHandle vmExitsKlass();
   static Handle instance();
 
@@ -85,9 +83,17 @@
   if (THREAD->has_pending_exception()) {
     Handle exception = PENDING_EXCEPTION;
     CLEAR_PENDING_EXCEPTION;
+    tty->print_cr("%s", message);
     java_lang_Throwable::print(exception, tty);
     tty->cr();
     java_lang_Throwable::print_stack_trace(exception(), tty);
     vm_abort(dump_core);
   }
 }
+
+inline void check_not_null(void* value, const char* message, bool dump_core = false) {
+  if (value == NULL) {
+    tty->print_cr("%s", message);
+    vm_abort(dump_core);
+  }
+}