dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [patch #3113] race condition in jit-thread.c


From: Miroslaw Dobrzanski-Neumann
Subject: [Pnet-developers] [patch #3113] race condition in jit-thread.c
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204

This mail is an automated notification from the patch tracker
 of the project: DotGNU Portable.NET.




/**************************************************************************/
[patch #3113] Full Item Snapshot:

URL: <http://savannah.gnu.org/patch/?func=detailitem&item_id=3113>
Project: DotGNU Portable.NET
Submitted by: Miroslaw Dobrzanski-Neumann
On: Tue 06/01/2004 at 16:07

Category:  None
Priority:  7 - High
Resolution:  None
Assigned to:  None
Originator Email:  
Status:  Open


Summary:  race condition in jit-thread.c

Original Submission:  the following code snipped from libjit/jit/jit-thread.c 
contains a race condition. If a thread entering the if-branch is interrupted by 
scheduler in line 74, other thread will assume init_win32_thread() has already 
been called.
     71         static LONG volatile once_control = 0;
     72         if(!InterlockedExchange((PLONG)&once_control, 1))
     73         {
     74                 init_win32_thread();
     75         }

Attached you find a fix for this bug.





File Attachments
-------------------

-------------------------------------------------------
Date: Tue 06/01/2004 at 16:07  Name: jit-thread.c.diff  Size: 1KB   By: miroslaw
fixed race condition in inti code for windows platform
http://savannah.gnu.org/patch/download.php?item_id=3113&amp;item_file_id=3331






For detailed info, follow this link:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=3113>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]