Skip to content

Commit d57bdd8

Browse files
committedMar 15, 2024
8328165: improve assert(idx < _maxlrg) failed: oob
Reviewed-by: mdoerr, chagedorn
1 parent 128e60a commit d57bdd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/share/opto/chaitin.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class PhaseIFG : public Phase {
292292
#endif
293293

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.