about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-27 22:09:30 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-27 22:09:30 +0100
commit41cdb1eb5a3627c3b6b6c4f74503233d9689a397 (patch)
treef7b950b78a0005dfa459085ca39d1d0aed6f7fe6 /sysdeps
parentf817775364018856379b9475efd7b4345db66dc6 (diff)
downloadglibc-41cdb1eb5a3627c3b6b6c4f74503233d9689a397.tar.gz
glibc-41cdb1eb5a3627c3b6b6c4f74503233d9689a397.tar.xz
glibc-41cdb1eb5a3627c3b6b6c4f74503233d9689a397.zip
hurd: Fix enabling vm_copy
Benchmarked on
http://lists.gnu.org/archive/html/bug-hurd/2014-12/msg00081.html

	* sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
	PAGE_COPY_THRESHOLD and set to benchmarked 16384.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/pagecopy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/pagecopy.h b/sysdeps/mach/pagecopy.h
index 6285ffb416..8583df4569 100644
--- a/sysdeps/mach/pagecopy.h
+++ b/sysdeps/mach/pagecopy.h
@@ -19,8 +19,8 @@
 #include <mach.h>
 
 /* Threshold at which vm_copy is more efficient than well-optimized copying
-   by words.  This parameter should be tuned as necessary.  */
-#define PAGE_THRESHOLD		(2 * PAGE_SIZE)	/* XXX ? */
+   by words.  */
+#define PAGE_COPY_THRESHOLD		(16384)
 
 #define PAGE_SIZE		__vm_page_size
 #define PAGE_COPY_FWD(dstp, srcp, nbytes_left, nbytes)			      \