Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
8261354: SIGSEGV at MethodIteratorHost
Browse files Browse the repository at this point in the history
Backport-of: 24623167ffbf8e192ef539fd0a969412719f850c
  • Loading branch information
Ekaterina Vergizova committed Aug 22, 2022
1 parent 0ec5a52 commit 3bcf79b
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -898,12 +898,11 @@ class MethodIteratorHost {
bool operator()(KlassPtr klass) {
if (_method_used_predicate(klass)) {
const InstanceKlass* ik = InstanceKlass::cast(klass);
const int len = ik->methods()->length();
Filter filter(ik->previous_versions() != NULL ? len : 0);
while (ik != NULL) {
const int len = ik->methods()->length();
for (int i = 0; i < len; ++i) {
MethodPtr method = ik->methods()->at(i);
if (_method_flag_predicate(method) && filter(i)) {
if (_method_flag_predicate(method)) {
_method_cb(method);
}
}
Expand Down

1 comment on commit 3bcf79b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.