changeset 56091:fb6cd98e4dec

8230118: 32-bit build failures after JDK-8227054 Reviewed-by: zgu, kbarrett
author shade
date Tue, 27 Aug 2019 19:22:58 +0200
parents 460f412c1358
children 49fea19f0726
files src/hotspot/share/gc/shared/weakProcessor.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();
 }