8230118: 32-bit build failures after JDK-8227054
authorshade
Tue, 27 Aug 2019 19:22:58 +0200
changeset 57892 fb6cd98e4dec
parent 57891 460f412c1358
child 57893 49fea19f0726
8230118: 32-bit build failures after JDK-8227054 Reviewed-by: zgu, kbarrett
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();
 }