mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
e18151212d
and new features. Don't believe me? Then see for yourself at http://www.gnome.org/start/2.12/notes/en/. DO NOT USE portupgrade by itself to upgrade to GNOME 2.12. Instead, use the gnome_upgrade.sh script from http://www.marcuscom.com/downloads/gnome_upgrade212.sh. This script will circumvent some potential pitfalls users can see if they use portupgrade by itself. In keeping with tradition, GNOME 2.12 for FreeBSD comes with a special splash screen. The winner of this release's contest is Dominique Goncalves <dominique.goncalves@gmail.com>. His splash screen was inspired by http://art.gnome.org/contests/2.12-splash/83. The FreeBSD GNOME Team would lank to thank the following users for their contributions to this release: Matthew Luckie <mjl@luckie.org.nz> ade sajd on #freebsd-gnome Caelian on #freebsd-gnome mnag Yasuda Keisuke <kysd@po.harenet.ne.jp> Mark Hobden <markhobden@gmail.com> Sergey Akifyev <asa@agava.com> Andreas Kohn For more information on GNOME on FreeBSD, checkout http://www.FreeBSD.org/gnome/. The 2.12 documentation will be posted shortly.
33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
--- gthread/gthread-posix.c.orig Thu Jun 9 11:25:01 2005
|
|
+++ gthread/gthread-posix.c Fri Jun 10 20:23:17 2005
|
|
@@ -115,7 +115,11 @@ static gint priority_normal_value;
|
|
# define PRIORITY_NORMAL_VALUE priority_normal_value
|
|
#endif /* POSIX_MIN_PRIORITY && POSIX_MAX_PRIORITY */
|
|
|
|
+#define G_THREAD_STACK_SIZE32 (1*1024*1024)
|
|
+#define G_THREAD_STACK_SIZE64 (2*1024*1024)
|
|
+
|
|
static gulong g_thread_min_stack_size = 0;
|
|
+static gulong g_thread_default_stack_size = 0;
|
|
|
|
#define G_MUTEX_SIZE (sizeof (pthread_mutex_t))
|
|
|
|
@@ -309,8 +313,16 @@ g_thread_create_posix_impl (GThreadFunc
|
|
stack_size = MAX (g_thread_min_stack_size, stack_size);
|
|
/* No error check here, because some systems can't do it and
|
|
* we simply don't want threads to fail because of that. */
|
|
- pthread_attr_setstacksize (&attr, stack_size);
|
|
}
|
|
+ else
|
|
+ {
|
|
+ if (sizeof(void *) == 8)
|
|
+ g_thread_default_stack_size = G_THREAD_STACK_SIZE64;
|
|
+ else
|
|
+ g_thread_default_stack_size = G_THREAD_STACK_SIZE32;
|
|
+ stack_size = MAX (g_thread_min_stack_size, g_thread_default_stack_size);
|
|
+ }
|
|
+ pthread_attr_setstacksize (&attr, stack_size);
|
|
#endif /* HAVE_PTHREAD_ATTR_SETSTACKSIZE */
|
|
|
|
#ifdef PTHREAD_SCOPE_SYSTEM
|