hotspot/src/share/vm/compiler/oopMap.hpp
changeset 30774 6745424a720f
parent 30628 3c15b4a3bf4d
child 33063 9e222337a81e
--- a/hotspot/src/share/vm/compiler/oopMap.hpp	Thu May 14 12:05:32 2015 -0700
+++ b/hotspot/src/share/vm/compiler/oopMap.hpp	Thu May 21 18:10:18 2015 +0200
@@ -273,6 +273,9 @@
 
   bool has_derived_pointer() const PRODUCT_RETURN0;
   int count() const { return _count; }
+#ifdef ASSERT
+  int nr_of_bytes() const; // this is an expensive operation, only used in debug builds
+#endif
 
   // Printing
   void print_on(outputStream* st) const;
@@ -346,6 +349,9 @@
   bool is_done()                        { if(!_valid_omv) { find_next(); } return !_valid_omv; }
   void next()                           { find_next(); }
   OopMapValue current()                 { return _omv; }
+#ifdef ASSERT
+  int stream_position() const           { return _stream->position(); }
+#endif
 };