Mercurial > hg > truffle
comparison src/share/vm/classfile/stackMapFrame.hpp @ 7985:ab826603e572
8007475: Memory stomp with UseMallocOnly
Summary: Fix off-by-one error
Reviewed-by: coleenp, hseigel
author | simonis |
---|---|
date | Mon, 04 Feb 2013 13:14:12 -0500 |
parents | da91efe96a93 |
children | f36e073d56a4 |
comparison
equal
deleted
inserted
replaced
7981:ce5467120c84 | 7985:ab826603e572 |
---|---|
176 | 176 |
177 inline void set_mark() { | 177 inline void set_mark() { |
178 #ifdef DEBUG | 178 #ifdef DEBUG |
179 // Put bogus type to indicate it's no longer valid. | 179 // Put bogus type to indicate it's no longer valid. |
180 if (_stack_mark != -1) { | 180 if (_stack_mark != -1) { |
181 for (int i = _stack_mark; i >= _stack_size; --i) { | 181 for (int i = _stack_mark - 1; i >= _stack_size; --i) { |
182 _stack[i] = VerificationType::bogus_type(); | 182 _stack[i] = VerificationType::bogus_type(); |
183 } | 183 } |
184 } | 184 } |
185 #endif // def DEBUG | 185 #endif // def DEBUG |
186 _stack_mark = _stack_size; | 186 _stack_mark = _stack_size; |