This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
usemymalloc slows down newer openbsd [perl #75742]
authorRafael Garcia-Suarez <rgs@consttype.org>
Tue, 15 Jun 2010 08:16:35 +0000 (10:16 +0200)
committerRafael Garcia-Suarez <rgs@consttype.org>
Tue, 15 Jun 2010 08:16:35 +0000 (10:16 +0200)
hints/openbsd.sh

index e4b1360..f13091d 100644 (file)
@@ -8,8 +8,12 @@
 #      ./Configure -des -Dopenbsd_distribution=defined
 #
 
-# OpenBSD has a better malloc than perl...
-test "$usemymalloc" || usemymalloc='n'
+# In OpenBSD > 3.7, use perl's malloc [perl #75742]
+case "$osvers" in
+3.[89]*|[4-9]*)
+    test "$usemymalloc" || usemymalloc=y
+    ;;
+esac
 
 # malloc wrap works
 case "$usemallocwrap" in