hotspot/src/share/vm/oops/methodData.hpp
changeset 21581 73584c201e2d
parent 21095 1a04f7b3946e
child 22851 4c4b6a45be43
--- a/hotspot/src/share/vm/oops/methodData.hpp	Wed Nov 13 01:50:14 2013 -0800
+++ b/hotspot/src/share/vm/oops/methodData.hpp	Wed Nov 13 13:45:50 2013 +0100
@@ -690,7 +690,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;
   }
 
@@ -698,7 +697,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;
     }