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

Submitter:  Jeffrey A. Meunier <jeffm>
Submitted:  Tue 30 Oct 2007 02:11:15 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

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

fixed in current GIT repository.

Klaus Treichel <ktreichel>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-01-01 ktreichel StatusNone Fixed
        Open/ClosedOpen Closed
    2007-10-30 jeffm Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code