harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From x..@apache.org
Subject svn commit: r649343 - /harmony/enhanced/drlvm/trunk/vm/gc_gen/src/common/gc_block.h
Date Fri, 18 Apr 2008 01:05:05 GMT
Author: xli
Date: Thu Apr 17 18:05:04 2008
New Revision: 649343

URL: http://svn.apache.org/viewvc?rev=649343&view=rev
Log:
HARMONY-5759 : [drlvm][gc][performance] Alignment of GC blocks could improve the performance
of FP benchmarks

Modified:
    harmony/enhanced/drlvm/trunk/vm/gc_gen/src/common/gc_block.h

Modified: harmony/enhanced/drlvm/trunk/vm/gc_gen/src/common/gc_block.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_gen/src/common/gc_block.h?rev=649343&r1=649342&r2=649343&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_gen/src/common/gc_block.h (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_gen/src/common/gc_block.h Thu Apr 17 18:05:04 2008
@@ -84,7 +84,11 @@
 #define OFFSET_TABLE_SIZE_WORDS (OFFSET_TABLE_SIZE_BYTES >> BIT_SHIFT_TO_BYTES_PER_WORD)
 #define OBJECT_INDEX_TO_OFFSET_TABLE(p_obj)   (ADDRESS_OFFSET_IN_BLOCK_BODY(p_obj) >>
SECTOR_SIZE_SHIFT_COUNT)
 
-#define GC_BLOCK_HEADER_SIZE_BYTES ((OFFSET_TABLE_SIZE_BYTES + GC_BLOCK_HEADER_VARS_SIZE_BYTES
 + GC_OBJECT_ALIGN_MASK ) & (~GC_OBJECT_ALIGN_MASK))
+#define GC_BLOCK_BODY_ALIGNMENT ((GC_OBJECT_ALIGNMENT<8) ? 8 : GC_OBJECT_ALIGNMENT)
+#define GC_BLOCK_BODY_ALIGN_MASK (GC_BLOCK_BODY_ALIGNMENT-1)
+
+#define GC_BLOCK_HEADER_SIZE_BYTES ((OFFSET_TABLE_SIZE_BYTES + GC_BLOCK_HEADER_VARS_SIZE_BYTES
 + GC_BLOCK_BODY_ALIGN_MASK ) & (~GC_BLOCK_BODY_ALIGN_MASK))
+
 #define GC_BLOCK_BODY_SIZE_BYTES (GC_BLOCK_SIZE_BYTES - GC_BLOCK_HEADER_SIZE_BYTES)
 #define GC_BLOCK_BODY(block) ((void*)((POINTER_SIZE_INT)(block) + GC_BLOCK_HEADER_SIZE_BYTES))
 /*LOS_Shrink: We have some fake block headers when trying to compute mos object target, 
@@ -270,6 +274,7 @@
 /* blocked_space hashcode_buf ops --> */
 
 #endif //#ifndef _BLOCK_H_
+
 
 
 



Mime
View raw message