bugDotGNU Portable.NET - Bugs: bug #21477, threads not reclaimed by GC

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #21477: threads not reclaimed by GC

Submitted by:  Jeffrey A. Meunier <jeffm>
Submitted on:  Tue 30 Oct 2007 02:11:15 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 01 Jan 2010 10:17:00 AM UTC, comment #1:

fixed in current GIT repository.

Klaus Treichel <ktreichel>
Project Administrator
Tue 30 Oct 2007 02:11:15 PM UTC, original submission:

Platform: Win XP SP2, Pnet 0.8.0

Compile this and run it, and watch memory consumption grow and grow. If the Start method is not called, then the problem goes away.

using System;
using System.Threading;
class ThreadTest
{
static void ThreadMethod() {}
static void Main()
{
while( true )
{
new Thread( new ThreadStart( ThreadMethod ) ).Start();
Thread.Sleep( 1 ); // make ^C more responsive
}
}
}

Jeffrey A. Meunier <jeffm>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ktreichel (Posted a comment)
  • -unavailable- added by jeffm (Submitted the item)
  • -unavailable- added by jeffm
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 01 Jan 2010 10:17:00 AM UTCktreichelStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 30 Oct 2007 02:11:15 PM UTCjeffmCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1