1.1 --- a/src/share/vm/interpreter/oopMapCache.cpp Fri Sep 26 03:42:38 2014 -0700 1.2 +++ b/src/share/vm/interpreter/oopMapCache.cpp Mon Sep 29 13:12:48 2014 +0200 1.3 @@ -180,7 +180,7 @@ 1.4 } 1.5 } 1.6 1.7 -bool InterpreterOopMap::is_empty() { 1.8 +bool InterpreterOopMap::is_empty() const { 1.9 bool result = _method == NULL; 1.10 assert(_method != NULL || (_bci == 0 && 1.11 (_mask_size == 0 || _mask_size == USHRT_MAX) && 1.12 @@ -196,7 +196,7 @@ 1.13 for (int i = 0; i < N; i++) _bit_mask[i] = 0; 1.14 } 1.15 1.16 -void InterpreterOopMap::iterate_oop(OffsetClosure* oop_closure) { 1.17 +void InterpreterOopMap::iterate_oop(OffsetClosure* oop_closure) const { 1.18 int n = number_of_entries(); 1.19 int word_index = 0; 1.20 uintptr_t value = 0; 1.21 @@ -238,7 +238,7 @@ 1.22 #endif 1.23 1.24 1.25 -void InterpreterOopMap::print() { 1.26 +void InterpreterOopMap::print() const { 1.27 int n = number_of_entries(); 1.28 tty->print("oop map for "); 1.29 method()->print_value(); 1.30 @@ -469,7 +469,7 @@ 1.31 } 1.32 } 1.33 1.34 -inline unsigned int OopMapCache::hash_value_for(methodHandle method, int bci) { 1.35 +inline unsigned int OopMapCache::hash_value_for(methodHandle method, int bci) const { 1.36 // We use method->code_size() rather than method->identity_hash() below since 1.37 // the mark may not be present if a pointer to the method is already reversed. 1.38 return ((unsigned int) bci) 1.39 @@ -522,7 +522,7 @@ 1.40 1.41 void OopMapCache::lookup(methodHandle method, 1.42 int bci, 1.43 - InterpreterOopMap* entry_for) { 1.44 + InterpreterOopMap* entry_for) const { 1.45 MutexLocker x(&_mut); 1.46 1.47 OopMapCacheEntry* entry = NULL;