Skip to content

Commit

Permalink
Add klass_name check for is_object_wait0
Browse files Browse the repository at this point in the history
  • Loading branch information
pchilano committed Oct 30, 2024
1 parent 1b695e5 commit 9fd4c03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/share/oops/method.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,8 @@ bool Method::needs_clinit_barrier() const {
}

bool Method::is_object_wait0() const {
return name() == vmSymbols::wait_name();
return klass_name() == vmSymbols::java_lang_Object()
&& name() == vmSymbols::wait_name();
}

objArrayHandle Method::resolved_checked_exceptions_impl(Method* method, TRAPS) {
Expand Down

0 comments on commit 9fd4c03

Please sign in to comment.