< prev index next >

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

Print this page

        

@@ -40,10 +40,19 @@
     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;
     }
 
     @Override
< prev index next >