|
Message
From: cvs at opencores.org<cvs@o...>
Date: Mon Oct 30 01:43:38 CET 2006
Subject: [cvs-checkins] MODIFIED: jop ...
Date: 00/06/10 30:01:43 Modified: jop/java/target/src/test/gctest GCTest1.java Log: no message Revision Changes Path 1.2 jop/java/target/src/test/gctest/GCTest1.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/gctest/GCTest1.java.diff?r1=1.1&r2=1.2 (In the diff below, changes in quantity of whitespace are not shown.) Index: GCTest1.java =================================================================== RCS file: /cvsroot/martin/jop/java/target/src/test/gctest/GCTest1.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- GCTest1.java 11 Feb 2006 20:25:49 -0000 1.1 +++ GCTest1.java 30 Oct 2006 00:43:37 -0000 1.2 @@ -11,7 +11,7 @@ public class GCTest1 { - public static void main( String s[] ) { + public static void main(String s[]) { new RtThread(20, 1000000) { public void run() { String allocStr = "Allocation problem!"; @@ -22,12 +22,12 @@ GC.gc(); int freeHeap = GC.freeMemory(); for (;;) { - if(freeHeap != GC.freeMemory()){ + if (freeHeap != GC.freeMemory()) { System.out.println(allocStr); } garbage = new Garbage(); - if((garbage.id-prevId)!=1){ + if ((garbage.id - prevId) != 1) { System.out.println(refStr); System.exit(-1); } @@ -42,7 +42,7 @@ RtThread.startMission(); - for(int i=0;i<10;++i){ + for (int i = 0; i < 10; ++i) { RtThread.sleepMs(1000); } System.out.println("Test 1 OK"); @@ -51,8 +51,10 @@ class Garbage { static int cnt = 0; + public int id; - public Garbage(){ + + public Garbage() { cnt++; id = cnt; System.out.print("Garbage object id:");
|
 |