hotspot/src/share/vm/oops/methodData.hpp
changeset 22851 4c4b6a45be43
parent 22849 b8670e920530
parent 21581 73584c201e2d
child 22916 582da2ed4dfa
--- a/hotspot/src/share/vm/oops/methodData.hpp	Wed Nov 20 11:08:09 2013 -0800
+++ b/hotspot/src/share/vm/oops/methodData.hpp	Thu Nov 21 12:30:35 2013 -0800
@@ -777,7 +777,6 @@
   // recorded type: cell without bit 0 and 1
   static intptr_t klass_part(intptr_t v) {
     intptr_t r = v & type_klass_mask;
-    assert (r != 0, "invalid");
     return r;
   }
 
@@ -785,7 +784,9 @@
   static Klass* valid_klass(intptr_t k) {
     if (!is_type_none(k) &&
         !is_type_unknown(k)) {
-      return (Klass*)klass_part(k);
+      Klass* res = (Klass*)klass_part(k);
+      assert(res != NULL, "invalid");
+      return res;
     } else {
       return NULL;
     }