[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [patch #3612] serious race condition in java.lang.VMThread.c
From: |
Stephen Crawley |
Subject: |
[commit-cp] [patch #3612] serious race condition in java.lang.VMThread.create(...) |
Date: |
Tue, 04 Jan 2005 11:50:43 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 |
This mail is an automated notification from the patch tracker
of the project: classpath.
/**************************************************************************/
[patch #3612] Full Item Snapshot:
URL: <http://savannah.gnu.org/patch/?func=detailitem&item_id=3612>
Project: classpath
Submitted by: Stephen Crawley
On: Tue 01/04/2005 at 16:38
Category: None
Priority: 9 - Immediate
Resolution: None
Privacy: Public
Assigned to: None
Originator Email:
Status: Open
Summary: serious race condition in java.lang.VMThread.create(...)
Original Submission: There is a nasty race condition in the VMThread.create
that bites on Kissme. The CVS version of the method
creates the VMThread instance, calls vmThread.start()
to get it going, and finally sets the Thread object's
vmThread attribute. If the child thread immediately
calls (say) Thread.current().sleep(...), it dies on
Kissme with a NullPointerException. The sleep call
tries to us the Thread's vmThread attribute, which
hasn't yet been assigned.
This patch fixes the problem by setting the vmThread
attribute BEFORE calling vmThread.start(...).
File Attachments
-------------------
-------------------------------------------------------
Date: Tue 01/04/2005 at 16:38 Name: diffs Size: 833B By: crawley
http://savannah.gnu.org/patch/download.php?item_id=3612&item_file_id=3992
For detailed info, follow this link:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=3612>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [commit-cp] [patch #3612] serious race condition in java.lang.VMThread.create(...),
Stephen Crawley <=