On Tue, 19 Dec 2006 10:26:25 -0800, Andreas Raab andreas.raab@gmx.de wrote:
- Which VM are you using?
3.7.1 (release) from Sept 23, 2004 Compiler: gcc 2.95.2 19991024 (release)
Does the following leak?
1000 timesRepeat: [NetNameResolver localHostAddress]
No.
- Does the following leak?
Yes.
How fast does it execute?
283 ms
How many stars do you get in the transcript?
None.
addr := NetNameResolver localHostAddress. [ 1000 timesRepeat: [ (NetNameResolver nameForAddress: addr timeout: 5) ifNil:[Transcript show: '*']. ] ] timeToRun.
- If test 3) does leak, increase the timeout to 50 and re-run. Does it
still leak? How fast does it execute?
Same results, 1000 more handles, no stars on the transcript, run time was 265 ms.
This is on Squeak 3.8 (6665) on XP Pro.
Later, Jon
-------------------------------------------------------------- Jon Hylands Jon@huv.com http://www.huv.com/jon
Project: Micro Raptor (Small Biped Velociraptor Robot) http://www.huv.com/blog