summaryrefslogtreecommitdiff
path: root/libjava/prims.cc
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2004-07-13 21:03:03 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2004-07-13 22:03:03 +0100
commit6187fd28ad121ea6a3adabdcf106df70d9ea0429 (patch)
tree9e450f9a46004f388b904ee291f197c06e3c7f8a /libjava/prims.cc
parentb6fa4f6e162650a0dfddbefb0104ca7d0224920d (diff)
downloadgcc-6187fd28ad121ea6a3adabdcf106df70d9ea0429.tar.gz
re PR libgcj/7587 (direct threaded interpreter not thread-safe)
2004-07-13 Bryce McKinlay <mckinlay@redhat.com> PR libgcj/7587 * interpret.cc (compile_mutex): New. (_Jv_InitInterpreter): New. Initialize compile_mutex. (run): Lock compile_mutex before calling compile() if compilation is required. * prims.cc (_Jv_CreateJavaVM): Call _Jv_InitInterpreter(). * include/java-interp.h (_Jv_InitInterpreter): Declare. From-SVN: r84644
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r--libjava/prims.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc
index 7aac58497aa..19bce1e62a0 100644
--- a/libjava/prims.cc
+++ b/libjava/prims.cc
@@ -25,6 +25,7 @@ details. */
#include <jvm.h>
#include <java-signal.h>
#include <java-threads.h>
+#include <java-interp.h>
#ifdef ENABLE_JVMPI
#include <jvmpi.h>
@@ -953,6 +954,10 @@ _Jv_CreateJavaVM (void* /*vm_args*/)
_Jv_InitThreads ();
_Jv_InitGC ();
_Jv_InitializeSyncMutex ();
+
+#ifdef INTERPRETER
+ _Jv_InitInterpreter ();
+#endif
#ifdef HANDLE_SEGV
INIT_SEGV;