Skip to content
Permalink
Browse files
8261354: SIGSEGV at MethodIteratorHost
Backport-of: 24623167ffbf8e192ef539fd0a969412719f850c
  • Loading branch information
RealCLanger committed Jun 2, 2021
1 parent 3ceb080 commit a680794c00bafb8510a2b9af7c4504ddb6fec704
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSet.cpp
@@ -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);
}
}

1 comment on commit a680794

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on a680794 Jun 2, 2021

Please sign in to comment.