diff options
author | marcus <marcus@FreeBSD.org> | 2004-07-25 03:53:33 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-07-25 03:53:33 +0800 |
commit | 1a787fbfd5abdc8a564596ecb978a571343009c9 (patch) | |
tree | 3a3bc1e7dbb52d62e46f8665c0ca1716f965ae5c /devel | |
parent | dd143449871fd48fcf6d14162de7e1da46404b58 (diff) | |
download | freebsd-ports-gnome-1a787fbfd5abdc8a564596ecb978a571343009c9.tar.gz freebsd-ports-gnome-1a787fbfd5abdc8a564596ecb978a571343009c9.tar.zst freebsd-ports-gnome-1a787fbfd5abdc8a564596ecb978a571343009c9.zip |
Hack the default stack size for threads created with g_thread_create() to
be 256 KB instead of the default (64 KB on platforms other than ia64, and
256 KB on ia64).
This fixes some stack overflows seen in applications such as
gnome-cups-manager.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/glib20/Makefile | 1 | ||||
-rw-r--r-- | devel/glib20/files/patch-glib_gthread.h | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/devel/glib20/Makefile b/devel/glib20/Makefile index 50fa918cb507..7d9c6fbad65f 100644 --- a/devel/glib20/Makefile +++ b/devel/glib20/Makefile @@ -7,6 +7,7 @@ PORTNAME= glib PORTVERSION= 2.4.4 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/${PORTNAME}/2.4,} \ ftp://ftp.gtk.org/pub/gtk/v2.3/ \ diff --git a/devel/glib20/files/patch-glib_gthread.h b/devel/glib20/files/patch-glib_gthread.h new file mode 100644 index 000000000000..fd1d80dbd45f --- /dev/null +++ b/devel/glib20/files/patch-glib_gthread.h @@ -0,0 +1,11 @@ +--- gthread.h.orig Sat Jul 24 15:31:32 2004 ++++ gthread.h Sat Jul 24 15:32:10 2004 +@@ -202,7 +202,7 @@ + #define g_thread_yield() G_THREAD_CF (thread_yield, (void)0, ()) + + #define g_thread_create(func, data, joinable, error) \ +- (g_thread_create_full (func, data, 0, joinable, FALSE, \ ++ (g_thread_create_full (func, data, 1024*256, joinable, FALSE, \ + G_THREAD_PRIORITY_NORMAL, error)) + + GThread* g_thread_create_full (GThreadFunc func, |