LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Mon May 28 20:09:22 CEST 2007
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/07/05 28:20:09

    Modified: jop/java/target/src/test/gcinc ForceBlack2White.java
    Added: jop/java/target/src/test/gcinc Concurrent.java
    Log:
    concurrent GC test cases


    Revision Changes Path
    1.2 jop/java/target/src/test/gcinc/ForceBlack2White.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/gcinc/ForceBlack2White.java.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: ForceBlack2White.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/test/gcinc/ForceBlack2White.java,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- ForceBlack2White.java 28 May 2007 16:14:57 -0000 1.1
    +++ ForceBlack2White.java 28 May 2007 18:09:22 -0000 1.2
    @@ -57,6 +57,7 @@
    System.out.println("Error in GC (local)");
    System.exit(1);
    }
    + System.out.print('.');
    abc = null;
    waitForNextPeriod();
    }
    @@ -81,6 +82,7 @@
    public void run() {
    GC.setConcurrent();
    for (;;) {
    + waitForNextPeriod();
    // int time = RtSystem.currentTimeMicro();
    System.out.print("G");
    GC.gc();



    1.1 jop/java/target/src/test/gcinc/Concurrent.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/gcinc/Concurrent.java?rev=1.1&content-type=text/x-cvsweb-markup

    Index: Concurrent.java
    ===================================================================
    package gcinc;

    import joprt.RtThread;

    import com.jopdesign.sys.GC;

    public class Concurrent {


    static SimpVector a, b, c;
    /**
    * @param args
    */
    public static void main(String[] args) {

    a = new SimpVector(100);
    b = new SimpVector(25);
    c = new SimpVector(999);

    new RtThread(2, 10000) {
    public void run() {
    for (;;) {
    a.run();
    waitForNextPeriod();
    }
    }
    };

    new RtThread(1, 3456) {
    public void run() {
    for (;;) {
    // int time = RtSystem.currentTimeMicro();
    System.out.print("G");
    GC.gc();
    // int now = RtSystem.currentTimeMicro();
    // System.out.println(now-time);
    // time = now;

    // waitForNextPeriod();
    }
    }
    };

    GC.setConcurrent();
    RtThread.startMission();
    }

    }



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.