hotspot/src/share/vm/opto/compile.cpp
changeset 16670 4af09aff4237
parent 15946 f688e7528dc6
child 17013 22a05c7f3314
--- a/hotspot/src/share/vm/opto/compile.cpp	Wed Apr 03 16:43:09 2013 -0700
+++ b/hotspot/src/share/vm/opto/compile.cpp	Thu Apr 04 10:01:26 2013 -0700
@@ -2326,12 +2326,14 @@
   int  get_inner_loop_count() const { return _inner_loop_count; }
 };
 
+#ifdef ASSERT
 static bool oop_offset_is_sane(const TypeInstPtr* tp) {
   ciInstanceKlass *k = tp->klass()->as_instance_klass();
   // Make sure the offset goes inside the instance layout.
   return k->contains_field_offset(tp->offset());
   // Note that OffsetBot and OffsetTop are very negative.
 }
+#endif
 
 // Eliminate trivially redundant StoreCMs and accumulate their
 // precedence edges.