comparison src/share/vm/memory/heapInspection.cpp @ 11048:2b9380b0bf0b hs25-b39

Merge
author amurillo
date Fri, 28 Jun 2013 02:25:07 -0700
parents e0c9a1d29eb4
children 78bbf4d43a14
comparison
equal deleted inserted replaced
11024:b6d1e42655cd 11048:2b9380b0bf0b
155 _size = 0; 155 _size = 0;
156 } 156 }
157 } 157 }
158 158
159 uint KlassInfoTable::hash(const Klass* p) { 159 uint KlassInfoTable::hash(const Klass* p) {
160 assert(p->is_metadata(), "all klasses are metadata");
161 return (uint)(((uintptr_t)p - (uintptr_t)_ref) >> 2); 160 return (uint)(((uintptr_t)p - (uintptr_t)_ref) >> 2);
162 } 161 }
163 162
164 KlassInfoEntry* KlassInfoTable::lookup(Klass* k) { 163 KlassInfoEntry* KlassInfoTable::lookup(Klass* k) {
165 uint idx = hash(k) % _size; 164 uint idx = hash(k) % _size;