diff 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
line wrap: on
line diff
--- a/src/share/vm/classfile/stackMapFrame.hpp	Sun Feb 03 17:12:31 2013 -0500
+++ b/src/share/vm/classfile/stackMapFrame.hpp	Mon Feb 04 13:14:12 2013 -0500
@@ -178,7 +178,7 @@
 #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();
       }
     }