8230118: 32-bit build failures after JDK-8227054

Reviewed-by: zgu, kbarrett
This commit is contained in:
Aleksey Shipilev 2019-08-27 19:22:58 +02:00
parent 858b1c1853
commit 702199983a

View File

@ -116,10 +116,10 @@ void WeakProcessor::Task::initialize() {
StorageState* cur_state = _storage_states;
OopStorageSet::Iterator it = OopStorageSet::weak_iterator();
for ( ; !it.is_end(); ++it, ++cur_state) {
assert((cur_state - _storage_states) < storage_count, "invariant");
assert(pointer_delta(cur_state, _storage_states, sizeof(StorageState)) < storage_count, "invariant");
new (cur_state) StorageState(*it, _nworkers);
}
assert((cur_state - _storage_states) == storage_count, "invariant");
assert(pointer_delta(cur_state, _storage_states, sizeof(StorageState)) == storage_count, "invariant");
StringTable::reset_dead_counter();
ResolvedMethodTable::reset_dead_counter();
}