aboutsummaryrefslogtreecommitdiff
path: root/libjava/prims.cc
diff options
context:
space:
mode:
authorDavid Daney <ddaney@avtrex.com>2005-02-16 04:16:06 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2005-02-16 04:16:06 +0000
commit7e9534bc544cd62cb587a17c50eed08f8ca68185 (patch)
treef9f4f02f6bbfd331d481cf0e7a15287b74a30280 /libjava/prims.cc
parent5909b0346cca73468ebde3e747bbe21453364a03 (diff)
downloadgcc-7e9534bc544cd62cb587a17c50eed08f8ca68185.zip
gcc-7e9534bc544cd62cb587a17c50eed08f8ca68185.tar.gz
gcc-7e9534bc544cd62cb587a17c50eed08f8ca68185.tar.bz2
prims.cc (_Jv_CreateJavaVM): Add comment about initialization order.
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. Co-Authored-By: Bryce McKinlay <mckinlay@redhat.com> From-SVN: r95095
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 c3c07d9..d12a242 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 ();