This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7029c03
)
hints comments tweak.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sat, 8 Aug 2015 21:52:30 +0000
(17:52 -0400)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 10 Aug 2015 12:35:14 +0000
(08:35 -0400)
hints/darwin.sh
patch
|
blob
|
blame
|
history
diff --git
a/hints/darwin.sh
b/hints/darwin.sh
index
fec05fd
..
81cdcff
100644
(file)
--- a/
hints/darwin.sh
+++ b/
hints/darwin.sh
@@
-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.