From: <dfr...@us...> - 2007-01-23 23:00:57
|
Revision: 11365 http://svn.sourceforge.net/jikesrvm/?rev=11365&view=rev Author: dframpton-oss Date: 2007-01-23 15:00:56 -0800 (Tue, 23 Jan 2007) Log Message: ----------- Corrected 32 bit BYTES_IN_ADDRESS constant so that we use the appropriate size class set. Modified Paths: -------------- rvmroot/trunk/MMTk/src/org/mmtk/utility/alloc/SegregatedFreeList.java Modified: rvmroot/trunk/MMTk/src/org/mmtk/utility/alloc/SegregatedFreeList.java =================================================================== --- rvmroot/trunk/MMTk/src/org/mmtk/utility/alloc/SegregatedFreeList.java 2007-01-23 14:19:02 UTC (rev 11364) +++ rvmroot/trunk/MMTk/src/org/mmtk/utility/alloc/SegregatedFreeList.java 2007-01-23 23:00:56 UTC (rev 11365) @@ -440,7 +440,7 @@ int sz1 = bytes - 1; - if (BYTES_IN_ADDRESS == 32) { // 32-bit + if (BYTES_IN_ADDRESS == 4) { // 32-bit if (COMPACT_SIZE_CLASSES) return ((sz1 <= 31) ? (sz1 >> 2) : // 4 bytes apart (sz1 <= 63) ? 4 + (sz1 >> 3) : // 8 bytes apart @@ -486,7 +486,7 @@ protected static final int getBaseCellSize(int sc) { if (VM.VERIFY_ASSERTIONS) VM.assertions._assert((sc >= 0) && (sc < SIZE_CLASSES)); - if (BYTES_IN_ADDRESS == 32) { // 32-bit + if (BYTES_IN_ADDRESS == 4) { // 32-bit if (COMPACT_SIZE_CLASSES) return ((sc < 8) ? (sc + 1) << 2: (sc < 12) ? (sc - 3) << 3: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |