gcc/libjava/java
Andrew Haley f0580031a7 re PR libgcj/8995 (race cases in interpreter)
2008-09-17  Andrew Haley  <aph@redhat.com>

        PR libgcj/8995:

        * defineclass.cc (_Jv_ClassReader::handleCodeAttribute):
        Initialize thread_count.
        * include/java-interp.h (_Jv_InterpMethod::thread_count): New
        field.
         (_Jv_InterpMethod::rewrite_insn_mutex): New mutex.
        (_Jv_InterpFrame:: _Jv_InterpFrame): Pass frame_type.
        * interpret.cc
        (ThreadCountAdjuster): New class.
        (_Jv_InterpMethod::thread_count): New field.
        (_Jv_InitInterpreter): Initialize rewrite_insn_mutex.
        Increment and decrement thread_count field in methods.
        * interpret-run.cc (REWRITE_INSN): Check thread_count <= 1.
        (REWRITE_INSN): Likewise.
        Declare a ThreadCountAdjuster.
        * java/lang/reflect/natVMProxy.cc (run_proxy): Initialize frame
        type as frame_proxy.

From-SVN: r140593
2008-09-23 13:51:58 +00:00
..
applet Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
awt Import GNU Classpath (classpath-0_97_2-release). 2008-06-28 13:29:13 +00:00
beans Import GNU Classpath (classpath-0_97_2-release). 2008-06-28 13:29:13 +00:00
io Import GNU Classpath (classpath-0_97_2-release). 2008-06-28 13:29:13 +00:00
lang re PR libgcj/8995 (race cases in interpreter) 2008-09-23 13:51:58 +00:00
math libjava 2007-04-19 00:24:09 +00:00
net Import GNU Classpath (classpath-0_97_2-release). 2008-06-28 13:29:13 +00:00
nio Import GNU Classpath (libgcj-import-20070727). 2007-08-04 10:53:49 +00:00
rmi Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
security Import GNU Classpath (classpath-0_97_2-release). 2008-06-28 13:29:13 +00:00
sql libjava 2007-04-19 00:24:09 +00:00
text Import GNU Classpath (classpath-0_97_2-release). 2008-06-28 13:29:13 +00:00
util Import GNU Classpath (classpath-0_97_2-release). 2008-06-28 13:29:13 +00:00