8159890: SIGSEGV with UseStringDeduplication and UseSharedSpaces/RequireSharedSpaces

Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Reviewed-by: stefank, drwhite, tschatzl, jiangli, iklam
This commit is contained in:
Per Lidén 2016-06-28 10:37:52 +02:00
parent e7a6ecea86
commit 651e15fda6
2 changed files with 73 additions and 1 deletions

View file

@ -248,7 +248,7 @@ inline void SimpleCompactHashtable::iterate(const I& iterator) {
} else {
u4*entry_max = _entries + BUCKET_OFFSET(_buckets[i + 1]);
while (entry < entry_max) {
iterator.do_value(_base_address, entry[0]);
iterator.do_value(_base_address, entry[1]);
entry += 2;
}
}