mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
Use thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if
2002-07-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread/gthread-solaris.c: Use thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise the stack might be to small for any nontrivial thread. Discovered on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
This commit is contained in:
parent
07f352af63
commit
5f38e99895
10
ChangeLog
10
ChangeLog
@ -1,3 +1,11 @@
|
||||
2002-07-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gthread/gthread-solaris.c: Use thr_min_stack() instead of
|
||||
sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
|
||||
g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
|
||||
the stack might be to small for any nontrivial thread. Discovered
|
||||
on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
|
||||
|
||||
2002-07-03 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* configure.in: Add a forgotten trailing ` in the
|
||||
@ -8,7 +16,7 @@
|
||||
* configure.in: Set binary age to 0 to make it compile.
|
||||
|
||||
* configure.in: Improve checks for dce/posix threads to also do
|
||||
the right thing, if the thread functions are not declared in the
|
||||
the right thing, if the thread functions are not declared in
|
||||
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
|
||||
<mne@mosaic-ag.com> in #77981.
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-07-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gthread/gthread-solaris.c: Use thr_min_stack() instead of
|
||||
sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
|
||||
g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
|
||||
the stack might be to small for any nontrivial thread. Discovered
|
||||
on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
|
||||
|
||||
2002-07-03 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* configure.in: Add a forgotten trailing ` in the
|
||||
@ -8,7 +16,7 @@
|
||||
* configure.in: Set binary age to 0 to make it compile.
|
||||
|
||||
* configure.in: Improve checks for dce/posix threads to also do
|
||||
the right thing, if the thread functions are not declared in the
|
||||
the right thing, if the thread functions are not declared in
|
||||
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
|
||||
<mne@mosaic-ag.com> in #77981.
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-07-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gthread/gthread-solaris.c: Use thr_min_stack() instead of
|
||||
sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
|
||||
g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
|
||||
the stack might be to small for any nontrivial thread. Discovered
|
||||
on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
|
||||
|
||||
2002-07-03 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* configure.in: Add a forgotten trailing ` in the
|
||||
@ -8,7 +16,7 @@
|
||||
* configure.in: Set binary age to 0 to make it compile.
|
||||
|
||||
* configure.in: Improve checks for dce/posix threads to also do
|
||||
the right thing, if the thread functions are not declared in the
|
||||
the right thing, if the thread functions are not declared in
|
||||
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
|
||||
<mne@mosaic-ag.com> in #77981.
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-07-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gthread/gthread-solaris.c: Use thr_min_stack() instead of
|
||||
sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
|
||||
g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
|
||||
the stack might be to small for any nontrivial thread. Discovered
|
||||
on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
|
||||
|
||||
2002-07-03 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* configure.in: Add a forgotten trailing ` in the
|
||||
@ -8,7 +16,7 @@
|
||||
* configure.in: Set binary age to 0 to make it compile.
|
||||
|
||||
* configure.in: Improve checks for dce/posix threads to also do
|
||||
the right thing, if the thread functions are not declared in the
|
||||
the right thing, if the thread functions are not declared in
|
||||
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
|
||||
<mne@mosaic-ag.com> in #77981.
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-07-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gthread/gthread-solaris.c: Use thr_min_stack() instead of
|
||||
sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
|
||||
g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
|
||||
the stack might be to small for any nontrivial thread. Discovered
|
||||
on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
|
||||
|
||||
2002-07-03 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* configure.in: Add a forgotten trailing ` in the
|
||||
@ -8,7 +16,7 @@
|
||||
* configure.in: Set binary age to 0 to make it compile.
|
||||
|
||||
* configure.in: Improve checks for dce/posix threads to also do
|
||||
the right thing, if the thread functions are not declared in the
|
||||
the right thing, if the thread functions are not declared in
|
||||
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
|
||||
<mne@mosaic-ag.com> in #77981.
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-07-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gthread/gthread-solaris.c: Use thr_min_stack() instead of
|
||||
sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
|
||||
g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
|
||||
the stack might be to small for any nontrivial thread. Discovered
|
||||
on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
|
||||
|
||||
2002-07-03 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* configure.in: Add a forgotten trailing ` in the
|
||||
@ -8,7 +16,7 @@
|
||||
* configure.in: Set binary age to 0 to make it compile.
|
||||
|
||||
* configure.in: Improve checks for dce/posix threads to also do
|
||||
the right thing, if the thread functions are not declared in the
|
||||
the right thing, if the thread functions are not declared in
|
||||
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
|
||||
<mne@mosaic-ag.com> in #77981.
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
2002-07-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* gthread/gthread-solaris.c: Use thr_min_stack() instead of
|
||||
sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
|
||||
g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
|
||||
the stack might be to small for any nontrivial thread. Discovered
|
||||
on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
|
||||
|
||||
2002-07-03 Anders Carlsson <andersca@gnu.org>
|
||||
|
||||
* configure.in: Add a forgotten trailing ` in the
|
||||
@ -8,7 +16,7 @@
|
||||
* configure.in: Set binary age to 0 to make it compile.
|
||||
|
||||
* configure.in: Improve checks for dce/posix threads to also do
|
||||
the right thing, if the thread functions are not declared in the
|
||||
the right thing, if the thread functions are not declared in
|
||||
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
|
||||
<mne@mosaic-ag.com> in #77981.
|
||||
|
||||
|
@ -56,14 +56,12 @@ static gulong g_thread_min_stack_size = 0;
|
||||
#define PRIORITY_LOW_VALUE 0
|
||||
#define PRIORITY_URGENT_VALUE 127
|
||||
|
||||
#ifdef _SC_THREAD_STACK_MIN
|
||||
#define HAVE_G_THREAD_IMPL_INIT
|
||||
static void
|
||||
g_thread_impl_init()
|
||||
{
|
||||
g_thread_min_stack_size = MAX (sysconf (_SC_THREAD_STACK_MIN), 0);
|
||||
g_thread_min_stack_size = thr_min_stack();
|
||||
}
|
||||
#endif /* _SC_THREAD_STACK_MIN */
|
||||
|
||||
static GMutex *
|
||||
g_mutex_new_solaris_impl (void)
|
||||
@ -207,7 +205,8 @@ g_thread_create_solaris_impl (GThreadFunc thread_func,
|
||||
g_return_if_fail (priority >= G_THREAD_PRIORITY_LOW);
|
||||
g_return_if_fail (priority <= G_THREAD_PRIORITY_URGENT);
|
||||
|
||||
stack_size = MAX (g_thread_min_stack_size, stack_size);
|
||||
if (stack_size)
|
||||
stack_size = MAX (g_thread_min_stack_size, stack_size);
|
||||
|
||||
ret = thr_create (NULL, stack_size, (void* (*)(void*))thread_func,
|
||||
arg, flags, thread);
|
||||
|
Loading…
Reference in New Issue
Block a user