summaryrefslogtreecommitdiffstats
path: root/Mac/mwerks
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-02-01 23:44:50 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-02-01 23:44:50 (GMT)
commitb4ef4c6d4c5d78b26b6de6b74c37ea6c411b0cd5 (patch)
tree7d52f5e8fec84d7f6f9ad00bdee6271008f7bfca /Mac/mwerks
parent4f6ecdaacf15545a90aa296c317f6e96f5a9377e (diff)
downloadcpython-b4ef4c6d4c5d78b26b6de6b74c37ea6c411b0cd5.zip
cpython-b4ef4c6d4c5d78b26b6de6b74c37ea6c411b0cd5.tar.gz
cpython-b4ef4c6d4c5d78b26b6de6b74c37ea6c411b0cd5.tar.bz2
Optionally (on USE_CACHE_ALIGN) extend overhead structure to align
returned addresses on 16-byte cacheline boundary.
Diffstat (limited to 'Mac/mwerks')
-rw-r--r--Mac/mwerks/malloc/malloc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mac/mwerks/malloc/malloc.c b/Mac/mwerks/malloc/malloc.c
index a629c0b..7b6e9fa 100644
--- a/Mac/mwerks/malloc/malloc.c
+++ b/Mac/mwerks/malloc/malloc.c
@@ -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 */