Change 20093 by [EMAIL PROTECTED] on 2003/07/09 11:43:09

        Play safe and use the system malloc in FreeBSD.
        Yes, performance suffers.  But that is better than
        random core dumps.

Affected files ...

... //depot/perl/hints/freebsd.sh#34 edit

Differences ...

==== //depot/perl/hints/freebsd.sh#34 (text) ====
Index: perl/hints/freebsd.sh
--- perl/hints/freebsd.sh#33~20026~     Sun Jul  6 01:14:48 2003
+++ perl/hints/freebsd.sh       Wed Jul  9 04:43:09 2003
@@ -92,23 +92,10 @@
        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 @@
 
        # Even with the malloc mutexes the Perl malloc does not
        # seem to be threadsafe in FreeBSD?
-       usemymalloc=y
+       usemymalloc=n
 
 esac
 EOCBU
End of Patch.

Reply via email to