Skip to content

Commit 7021999

Browse files
committed
8230118: 32-bit build failures after JDK-8227054
Reviewed-by: zgu, kbarrett
1 parent 858b1c1 commit 7021999

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/gc/shared/weakProcessor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ void WeakProcessor::Task::initialize() {
116116
StorageState* cur_state = _storage_states;
117117
OopStorageSet::Iterator it = OopStorageSet::weak_iterator();
118118
for ( ; !it.is_end(); ++it, ++cur_state) {
119-
assert((cur_state - _storage_states) < storage_count, "invariant");
119+
assert(pointer_delta(cur_state, _storage_states, sizeof(StorageState)) < storage_count, "invariant");
120120
new (cur_state) StorageState(*it, _nworkers);
121121
}
122-
assert((cur_state - _storage_states) == storage_count, "invariant");
122+
assert(pointer_delta(cur_state, _storage_states, sizeof(StorageState)) == storage_count, "invariant");
123123
StringTable::reset_dead_counter();
124124
ResolvedMethodTable::reset_dead_counter();
125125
}

0 commit comments

Comments
 (0)