Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ddprof-lib/src/main/cpp/hotspot/vmStructs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,8 @@ jmethodID VMMethod::id() {

jmethodID VMMethod::validatedId() {
jmethodID method_id = id();
if (!_can_dereference_jmethod_id || (goodPtr(method_id) && *(VMMethod**)method_id == this)) {
if (!_can_dereference_jmethod_id ||
((goodPtr(method_id) && SafeAccess::loadPtr((void**)method_id, nullptr) == this))) {
return method_id;
}
return NULL;
Expand Down
Loading