News:

OS2World.com Forum is back !!!

Remember to visit OS2World at:
http://www.os2world.com

Main Menu

memory leak: libc066, _beginthread()

Started by Digi, October 03, 2016, 06:44:38 AM

Previous topic - Next topic

Digi

Hi.

I have stable memory leak on each thread start. Can anyone confirm this problem? A small test program attached. I see an ever-increasing number of pages "stack" with Theseus:

G:\projects\test>start test.exe

C:\Programs\Theseus>getobj.cmd TEST private 1 0|find /C "stack"
15

C:\Programs\Theseus>getobj.cmd TEST private 1 0|find /C "stack"
17

C:\Programs\Theseus>getobj.cmd TEST private 1 0|find /C "stack"
19

C:\Programs\Theseus>getobj.cmd TEST private 1 0|find /C "stack"
20

C:\Programs\Theseus>getobj.cmd TEST private 1 0|find /C "stack"
23

and so on...

Digi

Strange... The problem disappeared after reboot.  :o

Greg Pringle

I have not run your program but can say the problem does exist if running java 1.6
also tested with theseus4
I wrote a new way to run threads that does not use the runnable interface and it solved the problem.