Skip to content

Commit 1d9d909

Browse files
committedMar 30, 2022
Tidy up safe_load
1 parent a344abe commit 1d9d909

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎src/hotspot/share/oops/instanceStackChunkKlass.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,10 @@ void InstanceStackChunkKlass::oop_oop_iterate_stack_slow(stackChunkOop chunk, Oo
211211
}
212212

213213
#ifdef ASSERT
214-
template<class P>
215-
static inline oop safe_load(P *addr) {
216-
oop obj = (oop)RawAccess<>::oop_load(addr);
217-
obj = (oop)NativeAccess<>::oop_load(&obj);
218-
return obj;
214+
template <typename P>
215+
static inline oop safe_load(P* addr) {
216+
oop obj = RawAccess<>::oop_load(addr);
217+
return NativeAccess<>::oop_load(&obj);
219218
}
220219
#endif
221220

0 commit comments

Comments
 (0)
Please sign in to comment.