]> granicus.if.org Git - python/commitdiff
Optionally (on USE_CACHE_ALIGN) extend overhead structure to align
authorJack Jansen <jack.jansen@cwi.nl>
Sat, 1 Feb 1997 23:44:50 +0000 (23:44 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sat, 1 Feb 1997 23:44:50 +0000 (23:44 +0000)
returned addresses on 16-byte cacheline boundary.

Mac/mwerks/malloc/malloc.c

index a629c0b4000d3d7738a47186e8c4d6ce6fbd50e9..7b6e9faefc54d8d69742107a1de20f01480157ff 100644 (file)
@@ -61,6 +61,8 @@ static char *rcsid = "$Id$";
 #define VCHECK
 #endif /* USE_MALLOC_DEBUG */
 
+#define USE_CACHE_ALIGN                /* Define for aligning everything on 16-byte boundaries */
+
 typedef unsigned char u_char;
 typedef unsigned long u_long;
 typedef unsigned int u_int;
@@ -102,6 +104,11 @@ union      overhead {
 #define        ov_index        ovu.ovu_index
 #define        ov_rmagic       ovu.ovu_rmagic
 #define        ov_size         ovu.ovu_size
+#ifdef USE_CACHE_ALIGN
+       struct cachealigner {
+               u_long  ovalign_1, ovalign_2, ovalign_3, ovalign_4;
+       };
+#endif /* USE_CACHE_ALIGN */
 };
 
 #define        MAGIC           0xef            /* magic # on accounting info */