Mercurial > hg > graal-compiler
changeset 13279:05de8cf71a41
fixed broken assertions
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 10 Dec 2013 21:40:12 +0100 |
parents | 038f55aab194 |
children | fbcdae53b17e |
files | src/share/vm/oops/methodData.hpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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;