hotspot/src/share/vm/code/codeBlob.hpp
changeset 4584 e2a449e8cc6f
parent 4564 55dfb20908d0
child 5050 47ecd86932ce
--- a/hotspot/src/share/vm/code/codeBlob.hpp	Fri Jan 08 09:42:31 2010 -0800
+++ b/hotspot/src/share/vm/code/codeBlob.hpp	Fri Jan 08 13:47:01 2010 -0800
@@ -204,7 +204,8 @@
   virtual void print_value_on(outputStream* st) const PRODUCT_RETURN;
 
   // Print the comment associated with offset on stream, if there is one
-  void print_block_comment(outputStream* stream, intptr_t offset) {
+  virtual void print_block_comment(outputStream* stream, address block_begin) {
+    intptr_t offset = (intptr_t)(block_begin - instructions_begin());
     _comments.print_block_comment(stream, offset);
   }