< prev index next >

src/java.base/share/classes/java/lang/LiveStackFrameInfo.java

Print this page
@@ -39,10 +39,19 @@
      private Object[] monitors = EMPTY_ARRAY;
      private Object[] locals = EMPTY_ARRAY;
      private Object[] operands = EMPTY_ARRAY;
      private int mode = 0;
  
+     @Override
+     protected void clear() {
+         super.clear();
+         monitors = EMPTY_ARRAY;
+         locals = EMPTY_ARRAY;
+         operands = EMPTY_ARRAY;
+         mode = 0;
+     }
+ 
      @Override
      public Object[] getMonitors() {
          return monitors;
      }
  
< prev index next >