# HG changeset patch # User shade # Date 1566926578 -7200 # Node ID fb6cd98e4dec2afa38ebab0c88ea027f4cab735b # Parent 460f412c13585c17433829b1827436995ec4fd99 8230118: 32-bit build failures after JDK-8227054 Reviewed-by: zgu, kbarrett diff -r 460f412c1358 -r fb6cd98e4dec src/hotspot/share/gc/shared/weakProcessor.cpp --- a/src/hotspot/share/gc/shared/weakProcessor.cpp Tue Aug 27 16:35:50 2019 +0200 +++ b/src/hotspot/share/gc/shared/weakProcessor.cpp Tue Aug 27 19:22:58 2019 +0200 @@ -116,10 +116,10 @@ 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(); }