diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-13 21:03:03 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-13 21:03:03 +0000 |
commit | 965daed0d5e71b74e84c92d4e99c316edf76b3d6 (patch) | |
tree | 9e450f9a46004f388b904ee291f197c06e3c7f8a /libjava/prims.cc | |
parent | 500b8870f07e2ae2f48f0cbe57c26b36afc981b6 (diff) | |
download | gcc-965daed0d5e71b74e84c92d4e99c316edf76b3d6.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84644 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r-- | libjava/prims.cc | 5 |
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; |