Mercurial > hg > graal-compiler
diff src/share/vm/oops/methodData.hpp @ 13279:05de8cf71a41
fixed broken assertions
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 10 Dec 2013 21:40:12 +0100 |
parents | 51e97f88c771 |
children | d8041d695d19 |
line wrap: on
line diff
--- a/src/share/vm/oops/methodData.hpp Tue Dec 10 11:10:14 2013 +0100 +++ b/src/share/vm/oops/methodData.hpp Tue Dec 10 21:40:12 2013 +0100 @@ -2193,7 +2193,7 @@ // Return (uint)-1 for overflow. uint trap_count(int reason) const { - assert((uint)reason < _trap_hist_limit, "oob"); + assert((uint)reason < GRAAL_ONLY(2*) _trap_hist_limit, "oob"); return (int)((_trap_hist._array[reason]+1) & _trap_hist_mask) - 1; } // For loops: @@ -2202,7 +2202,7 @@ uint inc_trap_count(int reason) { // Count another trap, anywhere in this method. assert(reason >= 0, "must be single trap"); - assert((uint)reason < _trap_hist_limit, "oob"); + assert((uint)reason < GRAAL_ONLY(2*) _trap_hist_limit, "oob"); uint cnt1 = 1 + _trap_hist._array[reason]; if ((cnt1 & _trap_hist_mask) != 0) { // if no counter overflow... _trap_hist._array[reason] = cnt1;