mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8007475: Memory stomp with UseMallocOnly
Fix off-by-one error Reviewed-by: coleenp, hseigel
This commit is contained in:
parent
6c6a537471
commit
37d83019d0
2 changed files with 42 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue