summaryrefslogtreecommitdiffstats
path: root/libjava/prims.cc
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-16 04:16:06 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-16 04:16:06 +0000
commit900f0fc74f1f554c76ee06f94fafe4765126658b (patch)
treef9f4f02f6bbfd331d481cf0e7a15287b74a30280 /libjava/prims.cc
parent735cc3dd9476a9058e71fc04e4d87f60b5a89b59 (diff)
downloadppe42-gcc-900f0fc74f1f554c76ee06f94fafe4765126658b.tar.gz
ppe42-gcc-900f0fc74f1f554c76ee06f94fafe4765126658b.zip
2005-02-15 David Daney <ddaney@avtrex.com>
Bryce McKinlay <mckinlay@redhat.com> * prims.cc (_Jv_CreateJavaVM): Add comment about initialization order. * posix-threads.cc (_Jv_InitThreads): Call block_sigchld() here to ensure that GC threads inherit the new signal mask. (block_sigchld): Call JvFail rather than throwing exception if pthread_sigmask() fails. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95095 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r--libjava/prims.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc
index c3c07d9f5e5..d12a2428ef0 100644
--- a/libjava/prims.cc
+++ b/libjava/prims.cc
@@ -921,6 +921,8 @@ _Jv_CreateJavaVM (void* /*vm_args*/)
PROCESS_GCJ_PROPERTIES;
+ /* Threads must be initialized before the GC, so that it inherits the
+ signal mask. */
_Jv_InitThreads ();
_Jv_InitGC ();
_Jv_InitializeSyncMutex ();
OpenPOWER on IntegriCloud