Skip to content

Commit

Permalink
8261354: SIGSEGV at MethodIteratorHost
Browse files Browse the repository at this point in the history
Reviewed-by: mgronlun
  • Loading branch information
Jaroslav Bachorik committed May 22, 2021
1 parent 72c9567 commit 2462316
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -863,12 +863,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

3 comments on commit 2462316

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

@RealCLanger
Copy link
Contributor

Choose a reason for hiding this comment

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

/backport jdk16u

@openjdk
Copy link

@openjdk openjdk bot commented on 2462316 May 23, 2021

Choose a reason for hiding this comment

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

@RealCLanger the backport was successfully created on the branch RealCLanger-backport-24623167 in my personal fork of openjdk/jdk16u. To create a pull request with this backport targeting openjdk/jdk16u:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

this pull request contains a backport of commit 24623167 from the openjdk/jdk repository.

The commit being backported was authored by Jaroslav Bachorik on 22 May 2021 and was reviewed by Markus Grönlund.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk16u:

$ git fetch https://github.com/openjdk-bots/jdk16u RealCLanger-backport-24623167:RealCLanger-backport-24623167
$ git checkout RealCLanger-backport-24623167
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk16u RealCLanger-backport-24623167

Please sign in to comment.