8254125: Assertion in cppVtables.cpp during builds on 32bit Windows

Reviewed-by: shade, ccheung
This commit is contained in:
Ioi Lam 2020-10-16 05:14:46 +00:00
parent bdda2058c2
commit 5145bed028
11 changed files with 109 additions and 139 deletions

View file

@ -113,9 +113,11 @@ void CompactHashtableWriter::allocate_table() {
_compact_entries = MetaspaceShared::new_ro_array<u4>(entries_space);
_stats->bucket_count = _num_buckets;
_stats->bucket_bytes = _compact_buckets->size() * BytesPerWord;
_stats->bucket_bytes = align_up(_compact_buckets->size() * BytesPerWord,
SharedSpaceObjectAlignment);
_stats->hashentry_count = _num_entries_written;
_stats->hashentry_bytes = _compact_entries->size() * BytesPerWord;
_stats->hashentry_bytes = align_up(_compact_entries->size() * BytesPerWord,
SharedSpaceObjectAlignment);
}
// Write the compact table's buckets