I propose the following patch, which changes the default for
UCLIBC_UCLINUX_BROKEN_MUNMAP. That option changes malloc behaviour for
nommu systems to match munmap and mmap calls exactly, which introduces
extra overhead. Also, when I was at Analog, we've had a fair amount of
trouble making it work in the presence of threads.
The problem this is trying to work around has been fixed in the kernel
since (I think)
commit 8feae13110d60cc6287afabc2887366b0eb226c2
Author: David Howells <[email protected]>
Date: Thu Jan 8 12:04:47 2009 +0000
NOMMU: Make VMAs per MM as for MMU-mode linux
which should mean that it was in 2.6.29.
(I can't seem to make the config system ask about the option; it always
gets the default value no matter what I do...)
Bernd
diff --git a/extra/Configs/Config.in.arch b/extra/Configs/Config.in.arch
index 5f7a2b0..ce6354f 100644
--- a/extra/Configs/Config.in.arch
+++ b/extra/Configs/Config.in.arch
@@ -213,7 +213,7 @@ config KERNEL_HEADERS
config UCLIBC_UCLINUX_BROKEN_MUNMAP
bool
depends on !ARCH_USE_MMU
- default y
+ default n
config HAVE_DOT_CONFIG
bool
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc