re PR libgcj/7587 (direct threaded interpreter not thread-safe)
authorBryce McKinlay <mckinlay@redhat.com>
Tue, 13 Jul 2004 21:03:03 +0000 (21:03 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Tue, 13 Jul 2004 21:03:03 +0000 (22:03 +0100)
commit6187fd28ad121ea6a3adabdcf106df70d9ea0429
tree9e450f9a46004f388b904ee291f197c06e3c7f8a
parentb6fa4f6e162650a0dfddbefb0104ca7d0224920d
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
libjava/ChangeLog
libjava/include/java-interp.h
libjava/interpret.cc
libjava/prims.cc