Skip to content

Commit

Permalink
8277212: GC accidentally cleans valid megamorphic vtable inline caches
Browse files Browse the repository at this point in the history
Backport-of: 976c2bb05611cdc7b11b0918aaf50ff693507aae
  • Loading branch information
stefank committed Nov 23, 2021
1 parent c47e233 commit ed45df2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hotspot/share/code/compiledMethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ bool CompiledMethod::clean_ic_if_metadata_is_dead(CompiledIC *ic) {
} else {
ShouldNotReachHere();
}
} else {
// This inline cache is a megamorphic vtable call. Those ICs never hold
// any Metadata and should therefore never be cleaned by this function.
return true;
}
}

Expand Down

1 comment on commit ed45df2

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