Skip to content

Commit

Permalink
Handle wrong pc more gracefully.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmelter-sap committed Jan 4, 2024
1 parent c3cd1f1 commit f9c358a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hotspot/share/code/nmethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2093,6 +2093,7 @@ PcDesc* PcDescContainer::find_pc_desc_internal(address pc, bool approximate, con
PcDesc* upper = search.scopes_pcs_end();
upper -= 1; // exclude final sentinel
if (lower >= upper) return nullptr; // native method; no PcDescs at all
if (upper->pc_offset() < pc_offset) return nullptr; // outside of valid range.

#define assert_LU_OK \
/* invariant on lower..upper during the following search: */ \
Expand Down

0 comments on commit f9c358a

Please sign in to comment.