[Bug libgcj/22211] [4.0 only] Thread.interrupt sometimes causes abort if thread is already dead

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 6 23:56:00 GMT 2005


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-06 23:55 -------
Subject: Bug 22211

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	tromey@gcc.gnu.org	2005-09-06 23:53:46

Modified files:
	libjava        : ChangeLog 
	libjava/java/lang: Thread.java natThread.cc 

Log message:
	PR libgcj/22211:
	* java/lang/natThread.cc (finish_): Synchronize when updating
	alive_flag.
	(_Jv_AttachCurrentThread): Likewise.
	(interrupt): Only call _Jv_ThreadInterrupt if thread is alive.
	* java/lang/Thread.java (isAlive): Now synchronized.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.3391.2.95&r2=1.3391.2.96
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/lang/Thread.java.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.35&r2=1.35.8.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/lang/natThread.cc.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.30&r2=1.30.8.1


------- Additional Comments From tromey at gcc dot gnu dot org  2005-09-06 23:56 -------
Fix on branch as well.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22211



More information about the Gcc-bugs mailing list