Skip to content

Commit

Permalink
8328165: improve assert(idx < _maxlrg) failed: oob
Browse files Browse the repository at this point in the history
Backport-of: d57bdd85ab5e45a2ecfce0c022da067ac30bb80d
  • Loading branch information
MBaesken committed Mar 22, 2024
1 parent bac3b94 commit 77d6dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/opto/chaitin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class PhaseIFG : public Phase {
#endif

//--------------- Live Range Accessors
LRG &lrgs(uint idx) const { assert(idx < _maxlrg, "oob"); return _lrgs[idx]; }
LRG &lrgs(uint idx) const { assert(idx < _maxlrg, "oob: index %u not smaller than %u", idx, _maxlrg); return _lrgs[idx]; }

// Compute and set effective degree. Might be folded into SquareUp().
void Compute_Effective_Degree();
Expand Down

1 comment on commit 77d6dfd

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