8007475: Memory stomp with UseMallocOnly

Fix off-by-one error

Reviewed-by: coleenp, hseigel
This commit is contained in:
Volker Simonis 2013-02-04 13:14:12 -05:00
parent 6c6a537471
commit 37d83019d0
2 changed files with 42 additions and 1 deletions

View file

@ -178,7 +178,7 @@ class StackMapFrame : public ResourceObj {
#ifdef DEBUG
// Put bogus type to indicate it's no longer valid.
if (_stack_mark != -1) {
for (int i = _stack_mark; i >= _stack_size; --i) {
for (int i = _stack_mark - 1; i >= _stack_size; --i) {
_stack[i] = VerificationType::bogus_type();
}
}