commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kohs...@apache.org
Subject svn commit: r226932 - /jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java
Date Tue, 02 Aug 2005 03:46:46 GMT
Author: kohsuke
Date: Mon Aug  1 20:46:43 2005
New Revision: 226932

URL: http://svn.apache.org/viewcvs?rev=226932&view=rev
Log:
fixed memory leak

Modified:
    jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java

Modified: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java?rev=226932&r1=226931&r2=226932&view=diff
==============================================================================
--- jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java
(original)
+++ jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java
Mon Aug  1 20:46:43 2005
@@ -60,18 +60,18 @@
         fstack = new float[parent.fstack.length];
         ostack = new Object[parent.ostack.length];
         rstack = new Object[parent.rstack.length];
-        System.arraycopy(parent.istack, 0, istack, 0, parent.istack.length);
-        System.arraycopy(parent.lstack, 0, lstack, 0, parent.lstack.length);
-        System.arraycopy(parent.dstack, 0, dstack, 0, parent.dstack.length);
-        System.arraycopy(parent.fstack, 0, fstack, 0, parent.fstack.length);
-        System.arraycopy(parent.ostack, 0, ostack, 0, parent.ostack.length);
-        System.arraycopy(parent.rstack, 0, rstack, 0, parent.rstack.length);
         iTop = parent.iTop;
         fTop = parent.fTop;
         dTop = parent.dTop;
         lTop = parent.lTop;
         oTop = parent.oTop;
         rTop = parent.rTop;
+        System.arraycopy(parent.istack, 0, istack, 0, iTop);
+        System.arraycopy(parent.lstack, 0, lstack, 0, fTop);
+        System.arraycopy(parent.dstack, 0, dstack, 0, dTop);
+        System.arraycopy(parent.fstack, 0, fstack, 0, lTop);
+        System.arraycopy(parent.ostack, 0, ostack, 0, oTop);
+        System.arraycopy(parent.rstack, 0, rstack, 0, rTop);
     }
 
     public boolean hasDouble() {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message