diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2015-12-28 19:11:43 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-02-01 10:05:38 +0300 |
commit | 15d35ad8b54dc79fe19d8cec660de0e3c099877c (patch) | |
tree | 83ed0bd924f54822a7db8c2a1637014a37dc89e9 /new_hblk.c | |
parent | 08517f2ea92dfd3e72ea6a21392616cebfcfd70b (diff) | |
download | bdwgc-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.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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. */ |