From 965daed0d5e71b74e84c92d4e99c316edf76b3d6 Mon Sep 17 00:00:00 2001 From: bryce Date: Tue, 13 Jul 2004 21:03:03 +0000 Subject: 2004-07-13 Bryce McKinlay 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84644 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/prims.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libjava/prims.cc') 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 #include #include +#include #ifdef ENABLE_JVMPI #include @@ -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; -- cgit v1.2.3