< prev index next >

src/hotspot/share/oops/method.cpp

Print this page

        

@@ -833,11 +833,10 @@
   *signature_handler = handler;
 }
 
 
 void Method::print_made_not_compilable(int comp_level, bool is_osr, bool report, const char* reason) {
-  assert(reason != NULL, "must provide a reason");
   if (PrintCompilation && report) {
     ttyLocker ttyl;
     tty->print("made not %scompilable on ", is_osr ? "OSR " : "");
     if (comp_level == CompLevel_all) {
       tty->print("all levels ");

@@ -894,11 +893,11 @@
     return is_not_c2_compilable();
   return false;
 }
 
 // call this when compiler finds that this method is not compilable
-void Method::set_not_compilable(const char* reason, int comp_level, bool report) {
+void Method::set_not_compilable(int comp_level, bool report, const char* reason) {
   if (is_always_compilable()) {
     // Don't mark a method which should be always compilable
     return;
   }
   print_made_not_compilable(comp_level, /*is_osr*/ false, report, reason);

@@ -925,11 +924,11 @@
   if (is_c2_compile(comp_level))
     return is_not_c2_osr_compilable();
   return false;
 }
 
-void Method::set_not_osr_compilable(const char* reason, int comp_level, bool report) {
+void Method::set_not_osr_compilable(int comp_level, bool report, const char* reason) {
   print_made_not_compilable(comp_level, /*is_osr*/ true, report, reason);
   if (comp_level == CompLevel_all) {
     set_not_c1_osr_compilable();
     set_not_c2_osr_compilable();
   } else {
< prev index next >