diff src/share/vm/runtime/deoptimization.hpp @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents d8041d695d19
children 36e1a11a72b3
line wrap: on
line diff
--- a/src/share/vm/runtime/deoptimization.hpp	Tue Apr 01 14:09:03 2014 +0200
+++ b/src/share/vm/runtime/deoptimization.hpp	Tue Apr 01 13:57:07 2014 +0200
@@ -72,7 +72,6 @@
     Reason_age,                   // nmethod too old; tier threshold reached
     Reason_predicate,             // compiler generated predicate failed
     Reason_loop_limit_check,      // compiler generated loop limits check failed
-    Reason_speculate_class_check, // saw unexpected object class from type speculation
 #ifdef GRAAL
     Reason_aliasing,              // optimistic assumption about aliasing failed
 #endif
@@ -234,7 +233,7 @@
   // Called by assembly stub after execution has returned to
   // deoptimized frame and after the stack unrolling.
   // @argument thread.     Thread where stub_frame resides.
-  // @argument exec_mode.  Determines how execution should be continued in top frame.
+  // @argument exec_mode.  Determines how execution should be continuted in top frame.
   //                       0 means continue after current byte code
   //                       1 means exception has happened, handle exception
   //                       2 means reexecute current bytecode (for uncommon traps).
@@ -351,23 +350,10 @@
       return reason;
     else if (reason == Reason_div0_check) // null check due to divide-by-zero?
       return Reason_null_check;           // recorded per BCI as a null check
-    else if (reason == Reason_speculate_class_check)
-      return Reason_class_check;
     else
       return Reason_none;
   }
 
-  static bool reason_is_speculate(int reason) {
-    if (reason == Reason_speculate_class_check) {
-      return true;
-    }
-    return false;
-  }
-
-  static uint per_method_trap_limit(int reason) {
-    return reason_is_speculate(reason) ? (uint)PerMethodSpecTrapLimit : (uint)PerMethodTrapLimit;
-  }
-
   static const char* trap_reason_name(int reason);
   static const char* trap_action_name(int action);
   // Format like reason='foo' action='bar' index='123'.
@@ -394,7 +380,6 @@
 #ifdef GRAAL
                                                bool is_osr,
 #endif
-                                               Method* compiled_method,
                                                //outputs:
                                                uint& ret_this_trap_count,
                                                bool& ret_maybe_prior_trap,