This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
On OS X to use perl's malloc need to USE_PERL_SBRK and emulate sbrk()
authorNicholas Clark <nick@ccl4.org>
Sat, 25 Jun 2005 15:45:06 +0000 (15:45 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 25 Jun 2005 15:45:06 +0000 (15:45 +0000)
using system malloc, because sbrk() stops giving us memory after about
14Mb.

p4raw-id: //depot/perl@24981

hints/darwin.sh

index 4a9683b..ad93776 100644 (file)
@@ -206,6 +206,9 @@ esac
 case "$usemymalloc" in
 '') usemymalloc='n' ;;
 esac
+# However sbrk() returns -1 (failure) somewhere in lib/unicore/mktables at
+# around 14M, so we need to use system malloc() as our sbrk()
+malloc_cflags='ccflags="-DUSE_PERL_SBRK -DPERL_SBRK_VIA_MALLOC $ccflags"'
 
 # Locales aren't feeling well.
 LC_ALL=C; export LC_ALL;