Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
/ jdk16u Public archive

Commit

Permalink
8261354: SIGSEGV at MethodIteratorHost
Browse files Browse the repository at this point in the history
Backport-of: 24623167ffbf8e192ef539fd0a969412719f850c
  • Loading branch information
RealCLanger committed Jun 2, 2021
1 parent 3ceb080 commit a680794
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -809,12 +809,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 a680794

@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.