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: Thu May 31 21:51:25 CEST 2007
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/07/05 31:21:51

    Modified: jop/java/target/src/common/com/jopdesign/sys GC.java
    Log:
    no message


    Revision Changes Path
    1.35 jop/java/target/src/common/com/jopdesign/sys/GC.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/common/com/jopdesign/sys/GC.java.diff?r1=1.34&r2=1.35

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

    Index: GC.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/common/com/jopdesign/sys/GC.java,v
    retrieving revision 1.34
    retrieving revision 1.35
    diff -u -b -r1.34 -r1.35
    --- GC.java 30 May 2007 23:06:09 -0000 1.34
    +++ GC.java 31 May 2007 19:51:24 -0000 1.35
    @@ -70,11 +70,11 @@
    * Threading the gray list. End of list is 'special' value -1.
    * 0 means not in list.
    */
    - static final int OFF_GRAY = 5;
    + static final int OFF_GREY = 5;
    /**
    * Special end of list marker -1
    */
    - static final int GRAY_END = -1;
    + static final int GREY_END = -1;
    /**
    * Denote in which space the object is
    */
    @@ -114,7 +114,7 @@

    static int freeList;
    static int useList;
    - static int grayList;
    + static int greyList;

    static int addrStaticRefs;

    @@ -155,7 +155,7 @@

    freeList = 0;
    useList = 0;
    - grayList = GRAY_END;
    + greyList = GREY_END;
    for (int i=0; i<handle_cnt; ++i) {
    int ref = mem_start+i*HANDLE_SIZE;
    // pointer to former freelist head
    @@ -163,7 +163,7 @@
    // mark handle as free
    Native.wrMem(0, ref+OFF_PTR);
    freeList = ref;
    - Native.wrMem(0, ref+OFF_GRAY);
    + Native.wrMem(0, ref+OFF_GREY);
    Native.wrMem(0, ref+OFF_SPACE);
    }
    // clean the heap
    @@ -211,10 +211,10 @@

    // only objects not allready in the gray list
    // are added
    - if (Native.rdMem(ref+OFF_GRAY)==0) {
    - // pointer to former freelist head
    - Native.wrMem(grayList, ref+OFF_GRAY);
    - grayList = ref;
    + if (Native.rdMem(ref+OFF_GREY)==0) {
    + // pointer to former gray list head
    + Native.wrMem(greyList, ref+OFF_GREY);
    + greyList = ref;
    }
    }
    }
    @@ -306,14 +306,14 @@

    // pop one object from the gray list
    synchronized (mutex) {
    - ref = grayList;
    - if (ref==GRAY_END) {
    + ref = greyList;
    + if (ref==GREY_END) {
    // we're done with our mark and copy
    isMarking = false;
    break;
    }
    - grayList = Native.rdMem(ref+OFF_GRAY);
    - Native.wrMem(0, ref+OFF_GRAY); // mark as not in list
    + greyList = Native.rdMem(ref+OFF_GREY);
    + Native.wrMem(0, ref+OFF_GREY); // mark as not in list
    }

    // allready moved
    @@ -398,7 +398,7 @@
    // mark handle as free
    Native.wrMem(0, ref+OFF_PTR);
    // TODO: should not be necessary - now just for sure
    - Native.wrMem(0, ref+OFF_GRAY);
    + Native.wrMem(0, ref+OFF_GREY); } } } @@ -483,6 +483,7 @@ sweepHandles(); zapSemi(); + // log("GC end - free memory:",freeMemory()); } @@ -514,7 +515,7 @@ // mark it as BLACK - means it will be in toSpace Native.wrMem(toSpace, ref+OFF_SPACE); // TODO: should not be necessary - now just for sure - Native.wrMem(0, ref+OFF_GRAY); + Native.wrMem(0, ref+OFF_GREY); return ref; }

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