< prev index next >

src/share/vm/code/compiledMethod.cpp

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -261,10 +261,12 @@
               csc->set_to_clean();
             }
           }
         break;
       }
+      default:
+        break;
     }
   }
 }
 
 int CompiledMethod::verify_icholder_relocations() {

@@ -338,10 +340,11 @@
     if (iter.addr() == call_instr) {
       switch(iter.type()) {
         case relocInfo::static_call_type:      return iter.static_call_reloc()->method_value();
         case relocInfo::opt_virtual_call_type: return iter.opt_virtual_call_reloc()->method_value();
         case relocInfo::virtual_call_type:     return iter.virtual_call_reloc()->method_value();
+        default:                               break;
       }
     }
   }
   return NULL; // not found
 }

@@ -648,10 +651,13 @@
       // handled by do_unloading_oops below
       break;
 
     case relocInfo::metadata_type:
       break; // nothing to do.
+
+    default:
+      break;
     }
   }
 
   if (do_unloading_oops(low_boundary, is_alive, unloading_occurred)) {
     return postponed;

@@ -701,8 +707,11 @@
       break;
 
     case relocInfo::static_call_type:
       clean_if_nmethod_is_unloaded(compiledStaticCall_at(iter.reloc()), is_alive, this);
       break;
+
+    default:
+      break;
     }
   }
 }
< prev index next >