diff -r 8c7933fa5a1f -r 0e20b36df5c4 hotspot/src/share/vm/utilities/globalDefinitions.hpp --- a/hotspot/src/share/vm/utilities/globalDefinitions.hpp Thu May 15 17:38:50 2014 -0400 +++ b/hotspot/src/share/vm/utilities/globalDefinitions.hpp Thu May 15 18:23:26 2014 -0400 @@ -1385,7 +1385,7 @@ // All C++ compilers that we know of have the vtbl pointer in the first // word. If there are exceptions, this function needs to be made compiler // specific. -static inline void* dereference_vptr(void* addr) { +static inline void* dereference_vptr(const void* addr) { return *(void**)addr; }