summaryrefslogtreecommitdiffstats
path: root/libjava/defineclass.cc
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-23 13:51:58 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-23 13:51:58 +0000
commit1db54b255f569d273de3d11d958fb4395a3ae58f (patch)
tree5aa7ac0da62ededbaab14350de950b012a5759a3 /libjava/defineclass.cc
parent74140efd05d39fbd8aa69c996e30f451ac71691b (diff)
downloadppe42-gcc-1db54b255f569d273de3d11d958fb4395a3ae58f.tar.gz
ppe42-gcc-1db54b255f569d273de3d11d958fb4395a3ae58f.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140593 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/defineclass.cc')
-rw-r--r--libjava/defineclass.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/defineclass.cc b/libjava/defineclass.cc
index 3416c468071..4c4e0a7f45d 100644
--- a/libjava/defineclass.cc
+++ b/libjava/defineclass.cc
@@ -1682,7 +1682,9 @@ void _Jv_ClassReader::handleCodeAttribute
method->prepared = NULL;
method->line_table_len = 0;
method->line_table = NULL;
-
+#ifdef DIRECT_THREADED
+ method->thread_count = 0;
+#endif
// grab the byte code!
memcpy ((void*) method->bytecode (),
OpenPOWER on IntegriCloud