Mercurial > hg > graal-compiler
diff src/share/vm/memory/blockOffsetTable.hpp @ 6750:859cd1a76f8a
7197906: BlockOffsetArray::power_to_cards_back() needs to handle > 32 bit shifts
Reviewed-by: brutisso, johnc, ysr
Contributed-by: Hal Mo <kungu.mjh@taobao.com>
author | brutisso |
---|---|
date | Thu, 13 Sep 2012 21:20:26 +0200 |
parents | da91efe96a93 |
children | 63a4eb8bcd23 |
line wrap: on
line diff
--- a/src/share/vm/memory/blockOffsetTable.hpp Fri Sep 14 22:00:41 2012 -0700 +++ b/src/share/vm/memory/blockOffsetTable.hpp Thu Sep 13 21:20:26 2012 +0200 @@ -285,7 +285,7 @@ }; static size_t power_to_cards_back(uint i) { - return (size_t)(1 << (LogBase * i)); + return (size_t)1 << (LogBase * i); } static size_t power_to_words_back(uint i) { return power_to_cards_back(i) * N_words;