aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/memory/heapInspection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/vm/memory/heapInspection.cpp')
-rw-r--r--src/share/vm/memory/heapInspection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/vm/memory/heapInspection.cpp b/src/share/vm/memory/heapInspection.cpp
index a51ea1d15..d93104954 100644
--- a/src/share/vm/memory/heapInspection.cpp
+++ b/src/share/vm/memory/heapInspection.cpp
@@ -154,12 +154,12 @@ KlassInfoTable::~KlassInfoTable() {
}
}
-uint KlassInfoTable::hash(Klass* p) {
+uint KlassInfoTable::hash(const Klass* p) {
assert(p->is_metadata(), "all klasses are metadata");
return (uint)(((uintptr_t)p - (uintptr_t)_ref) >> 2);
}
-KlassInfoEntry* KlassInfoTable::lookup(Klass* const k) {
+KlassInfoEntry* KlassInfoTable::lookup(Klass* k) {
uint idx = hash(k) % _size;
assert(_buckets != NULL, "Allocation failure should have been caught");
KlassInfoEntry* e = _buckets[idx].lookup(k);