|
Message
From: cvs at opencores.org<cvs@o...>
Date: Mon Oct 30 01:45:47 CET 2006
Subject: [cvs-checkins] MODIFIED: jop ...
Date: 00/06/10 30:01:45 Modified: jop/java/target/src/test/gctest MyList.java Log: print SP on stack overflow Revision Changes Path 1.2 jop/java/target/src/test/gctest/MyList.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/gctest/MyList.java.diff?r1=1.1&r2=1.2 (In the diff below, changes in quantity of whitespace are not shown.) Index: MyList.java =================================================================== RCS file: /cvsroot/martin/jop/java/target/src/test/gctest/MyList.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- MyList.java 25 Jun 2005 19:32:18 -0000 1.1 +++ MyList.java 30 Oct 2006 00:45:46 -0000 1.2 @@ -11,7 +11,7 @@ */ public class MyList { - final static int CNT = 10; + final static int CNT = 1000; private MyList next; private int a, b, c; @@ -28,13 +28,15 @@ int i, j; list1 = list2 = null; - for (int cnt=0; cnt<50;++cnt) { + for (int cnt=0; cnt<100;++cnt) { for (i=0; i<CNT; ++i) { ptr = list1; +// System.out.println("new 1"); list1 = new MyList(); list1.a = i+cnt; list1.next = ptr; ptr = list2; +// System.out.println("new 2"); list2 = new MyList(); list2.a = 1000+i+cnt; list2.next = ptr;
|
 |