This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
hints comments tweak.
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 8 Aug 2015 21:52:30 +0000 (17:52 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 10 Aug 2015 12:35:14 +0000 (08:35 -0400)
hints/darwin.sh

index fec05fd..81cdcff 100644 (file)
@@ -301,6 +301,11 @@ case "$usemymalloc" in
 esac
 # However sbrk() returns -1 (failure) somewhere in lib/unicore/mktables at
 # around 14M, so we need to use system malloc() as our sbrk()
 esac
 # However sbrk() returns -1 (failure) somewhere in lib/unicore/mktables at
 # around 14M, so we need to use system malloc() as our sbrk()
+#
+# sbrk() in Darwin deprecated since Mavericks (10.9), it still exists
+# in Yosemite (10.10) but that is just an emulation, and fails for
+# allocations beyond 4MB.  One should use e.g. mmap instead (or system
+# malloc, as suggested above, that but is kind of backward).
 malloc_cflags='ccflags="-DUSE_PERL_SBRK -DPERL_SBRK_VIA_MALLOC $ccflags"'
 
 # Locales aren't feeling well.
 malloc_cflags='ccflags="-DUSE_PERL_SBRK -DPERL_SBRK_VIA_MALLOC $ccflags"'
 
 # Locales aren't feeling well.