cdew / omnithreadlibrary

Automatically exported from code.google.com/p/omnithreadlibrary
0 stars 0 forks source link

Memory growth with nested OmniThread Pools #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an application with two thread pools, primary and secondary.
2. Create an unobserved task scheduled on the primary that schedules unobserved 
tasks on the secondary.
3. Do not WaitFor() or Terminate() the unobserved scheduled tasks.  Memory 
usage will grow with each iteration of primary scheduled tasks.

What is the expected output? What do you see instead?
Expect memory usage grows and then plateaus.  We see constant growth.

What version of the product are you using? On what operating system?
Version is 3.03a. Windows server 2008R2 and Windows 7 64-bit.

Please provide any additional information below.

Please see attached project for reproduction.  
To run each test press the "Run Tests" button.  This will schedule Primary and 
Secondary thread pool tasks.  The WaitFor checkbox controls if we WaitFor() the 
secondary scheduled tasks.  When it is checked, memory growth is controlled. 
When unchecked memory growth appears to be unlimited.  With each session of 
test from "RunTests" memory continues to grow when we are not Waiting for the 
secondary tasks to terminate.

Thank you.

Original issue reported on code.google.com by jpctu...@gmail.com on 13 Dec 2013 at 8:34

Attachments: