aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/code/codeBlob.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/vm/code/codeBlob.hpp')
-rw-r--r--src/share/vm/code/codeBlob.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/vm/code/codeBlob.hpp b/src/share/vm/code/codeBlob.hpp
index a8b73ae76..1d47bd972 100644
--- a/src/share/vm/code/codeBlob.hpp
+++ b/src/share/vm/code/codeBlob.hpp
@@ -184,7 +184,7 @@ class CodeBlob VALUE_OBJ_CLASS_SPEC {
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);
}