From d57bdd85ab5e45a2ecfce0c022da067ac30bb80d Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Fri, 15 Mar 2024 08:11:17 +0000 Subject: [PATCH] 8328165: improve assert(idx < _maxlrg) failed: oob Reviewed-by: mdoerr, chagedorn --- src/hotspot/share/opto/chaitin.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/opto/chaitin.hpp b/src/hotspot/share/opto/chaitin.hpp index f01a8496125..cf02deb6019 100644 --- a/src/hotspot/share/opto/chaitin.hpp +++ b/src/hotspot/share/opto/chaitin.hpp @@ -292,7 +292,7 @@ public: #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();