We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 239da4c commit fa203abCopy full SHA for fa203ab
1 file changed
ddprof-lib/src/main/cpp/hotspot/vmStructs.cpp
@@ -733,7 +733,8 @@ jmethodID VMMethod::id() {
733
734
jmethodID VMMethod::validatedId() {
735
jmethodID method_id = id();
736
- if (!_can_dereference_jmethod_id || (goodPtr(method_id) && *(VMMethod**)method_id == this)) {
+ if (!_can_dereference_jmethod_id ||
737
+ ((goodPtr(method_id) && SafeAccess::loadPtr((void**)method_id, nullptr) == this))) {
738
return method_id;
739
}
740
return NULL;
0 commit comments