--- a/src/hotspot/share/prims/stackwalk.cpp Tue Sep 17 09:51:02 2019 +0200
+++ b/src/hotspot/share/prims/stackwalk.cpp Tue Sep 17 09:51:02 2019 +0200
@@ -50,7 +50,7 @@
bool BaseFrameStream::check_magic(objArrayHandle frames_array) {
oop m1 = frames_array->obj_at(magic_pos);
jlong m2 = _anchor;
- if (oopDesc::equals(m1, _thread->threadObj()) && m2 == address_value()) return true;
+ if (m1 == _thread->threadObj() && m2 == address_value()) return true;
return false;
}
@@ -81,7 +81,7 @@
{
assert(thread != NULL && thread->is_Java_thread(), "");
oop m1 = frames_array->obj_at(magic_pos);
- if (!oopDesc::equals(m1, thread->threadObj())) return NULL;
+ if (m1 != thread->threadObj()) return NULL;
if (magic == 0L) return NULL;
BaseFrameStream* stream = (BaseFrameStream*) (intptr_t) magic;
if (!stream->is_valid_in(thread, frames_array)) return NULL;