Mercurial > hg > truffle
comparison src/share/vm/memory/heapInspection.cpp @ 11034:e0c9a1d29eb4
8016325: JVM hangs verifying system dictionary
Summary: Minimize redundant verifications of Klasses.
Reviewed-by: hseigel, jmasa
author | coleenp |
---|---|
date | Mon, 24 Jun 2013 18:55:46 -0400 |
parents | f2110083203d |
children | 78bbf4d43a14 |
comparison
equal
deleted
inserted
replaced
11033:d9eed26d638a | 11034:e0c9a1d29eb4 |
---|---|
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; |