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>2015-12-28 19:11:43 +0300
commit7bf1d7d64fa8b06419d1a9ffef0fc2018dd249c9 (patch)
tree818817c99170be5b17eb6f2d22d344b7dfeda47b /new_hblk.c
parentd80a05927330b7148b3b13c9dc56b07024c4202d (diff)
downloadbdwgc-7bf1d7d64fa8b06419d1a9ffef0fc2018dd249c9.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. */