# HG changeset patch # User Doug Simon # Date 1386708012 -3600 # Node ID 05de8cf71a417a9eeae24eb3a5ab226f86526344 # Parent 038f55aab194dd3a3025404b20fc88b92cbd3141 fixed broken assertions diff -r 038f55aab194 -r 05de8cf71a41 src/share/vm/oops/methodData.hpp --- 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;