From: Jarkko Hietaniemi Date: Wed, 9 Jul 2003 11:43:09 +0000 (+0000) Subject: Play safe and use the system malloc in FreeBSD. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c6e7ee5baf1b7ad0b2d86890e4174d74a2709b05;p=p5sagit%2Fp5-mst-13.2.git Play safe and use the system malloc in FreeBSD. Yes, performance suffers. But that is better than random core dumps. p4raw-id: //depot/perl@20093 --- diff --git a/hints/freebsd.sh b/hints/freebsd.sh index 479fa2b..937df2a 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -92,23 +92,10 @@ case "$osvers" in d_setegid='undef' d_seteuid='undef' ;; -4.*) # In FreeBSD 4 and 5 the system malloc is performance-wise - # VERY bad for Perl-- we are talking of differences of not - # one, but TWO magnitudes. - case "$usemymalloc" in - "") usemymalloc='y' - ;; - esac - ;; -5.*) case "$usemymalloc" in - "") usemymalloc='y' - ;; - esac - ;; *) usevfork='true' case "$usemymalloc" in - "") usemymalloc='y' - ;; + "") usemymalloc='n' + ;; esac libswanted=`echo $libswanted | sed 's/ malloc / /'` ;; @@ -263,7 +250,7 @@ EOM # Even with the malloc mutexes the Perl malloc does not # seem to be threadsafe in FreeBSD? - usemymalloc=y + usemymalloc=n esac EOCBU