--- a/hotspot/src/share/vm/code/codeBlob.hpp Thu Sep 20 16:49:17 2012 +0200
+++ b/hotspot/src/share/vm/code/codeBlob.hpp Mon Sep 24 10:30:14 2012 -0700
@@ -184,7 +184,7 @@
static void trace_new_stub(CodeBlob* blob, const char* name1, const char* name2 = "");
// Print the comment associated with offset on stream, if there is one
- virtual void print_block_comment(outputStream* stream, address block_begin) {
+ virtual void print_block_comment(outputStream* stream, address block_begin) const {
intptr_t offset = (intptr_t)(block_begin - code_begin());
_comments.print_block_comment(stream, offset);
}