diff src/cpu/sparc/vm/jvmciCodeInstaller_sparc.cpp @ 22721:510846133438

8139589: [JVMCI] Using fthrow when throwing JVMCIError.
author Roland Schatz <roland.schatz@oracle.com>
date Tue, 03 Nov 2015 16:55:51 +0100
parents 316e768645c0
children e5b5170606a2
line wrap: on
line diff
--- a/src/cpu/sparc/vm/jvmciCodeInstaller_sparc.cpp	Wed Nov 04 16:11:58 2015 +0100
+++ b/src/cpu/sparc/vm/jvmciCodeInstaller_sparc.cpp	Tue Nov 03 16:55:51 2015 +0100
@@ -115,7 +115,7 @@
     jump->set_jump_destination((address) foreign_call_destination);
     _instructions->relocate(jump->instruction_address(), runtime_call_Relocation::spec());
   } else {
-    JVMCI_ERROR(err_msg("unknown call or jump instruction at " PTR_FORMAT, p2i(pc)));
+    JVMCI_ERROR("unknown call or jump instruction at " PTR_FORMAT, p2i(pc));
   }
   TRACE_jvmci_3("relocating (foreign call) at %p", inst);
 }
@@ -197,7 +197,7 @@
     } else if(jvmci_reg < 112) {
       floatRegisterNumber = 4 * (jvmci_reg - 96);
     } else {
-      JVMCI_ERROR_NULL(err_msg("invalid register number: %d", jvmci_reg));
+      JVMCI_ERROR_NULL("invalid register number: %d", jvmci_reg);
     }
     return as_FloatRegister(floatRegisterNumber)->as_VMReg();
   }