summaryrefslogtreecommitdiff
path: root/new_hblk.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2015-12-28 19:11:43 +0300
committerIvan Maidanski <ivmai@mail.ru>2016-02-01 10:05:38 +0300
commit15d35ad8b54dc79fe19d8cec660de0e3c099877c (patch)
tree83ed0bd924f54822a7db8c2a1637014a37dc89e9 /new_hblk.c
parent08517f2ea92dfd3e72ea6a21392616cebfcfd70b (diff)
downloadbdwgc-15d35ad8b54dc79fe19d8cec660de0e3c099877c.tar.gz
Prefix PREFETCH_FOR_WRITE with GC_ as used in gc_inline.h public header
* doc/porting.html: Rename PREFETCH_FOR_WRITE to GC_PREFETCH_FOR_WRITE. * fnlz_mlc.c (GC_finalized_malloc): Likewise. * include/gc_inline.h (GC_FAST_MALLOC_GRANS): Likewise. * include/private/gcconfig.h: Likewise. * new_hblk.c (GC_build_fl_clear4, GC_build_fl4, GC_build_fl): Likewise. * include/gc_inline.h (GC_PREFETCH_FOR_WRITE): Define to no-op if undefined.
Diffstat (limited to 'new_hblk.c')
-rw-r--r--new_hblk.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/new_hblk.c b/new_hblk.c
index 05c4abff..ac6a118d 100644
--- a/new_hblk.c
+++ b/new_hblk.c
@@ -58,7 +58,7 @@
p[3] = 0;
p += 4;
for (; (word)p < (word)lim; p += 4) {
- PREFETCH_FOR_WRITE((ptr_t)(p+64));
+ GC_PREFETCH_FOR_WRITE((ptr_t)(p + 64));
p[0] = (word)(p-4);
p[1] = 0;
CLEAR_DOUBLE(p+2);
@@ -92,7 +92,7 @@
p[4] = (word)p;
p += 8;
for (; (word)p < (word)lim; p += 8) {
- PREFETCH_FOR_WRITE((ptr_t)(p+64));
+ GC_PREFETCH_FOR_WRITE((ptr_t)(p + 64));
p[0] = (word)(p-4);
p[4] = (word)p;
};
@@ -116,10 +116,10 @@ GC_INNER ptr_t GC_build_fl(struct hblk *h, size_t sz, GC_bool clear,
/* If we were more serious about it, these should go inside */
/* the loops. But write prefetches usually don't seem to */
/* matter much. */
- PREFETCH_FOR_WRITE((ptr_t)h);
- PREFETCH_FOR_WRITE((ptr_t)h + 128);
- PREFETCH_FOR_WRITE((ptr_t)h + 256);
- PREFETCH_FOR_WRITE((ptr_t)h + 378);
+ GC_PREFETCH_FOR_WRITE((ptr_t)h);
+ GC_PREFETCH_FOR_WRITE((ptr_t)h + 128);
+ GC_PREFETCH_FOR_WRITE((ptr_t)h + 256);
+ GC_PREFETCH_FOR_WRITE((ptr_t)h + 378);
# ifndef SMALL_CONFIG
/* Handle small objects sizes more efficiently. For larger objects */
/* the difference is less significant. */