On 2005.04.06, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote:
> To make sure this isn't related to AS directly, I went and did that in
> the plain tclsh with threading extension loaded. Same thing.
How did you verify this with the Tcl thread extension? I don't see the
leak:
$ LD_LIBRARY_PATH=`pwd` ./tclsh
% info patchlevel
8.4.5
% lappend auto_path /usr/lib/tcl8.4; package require Thread
2.6.1
% exec ps -p [pid] -o pid,vsz,rss,args
PID VSZ RSS COMMAND
23958 12704 1996 ./tclsh
% for {set i 0} {$i < 1000} {incr i} {
thread::join [thread::create -joinable {}]
}
% exec ps -p [pid] -o pid,vsz,rss,args
PID VSZ RSS COMMAND
23958 21192 2272 ./tclsh
Ah, looks like Tcl 8.4.5 doesn't have the leak. I just tested Tcl
8.4.9:
$ LD_LIBRARY_PATH=`pwd` ./tclsh
% info patchlevel
8.4.9
% lappend auto_path /usr/lib/tcl8.4; package require Thread
2.6.1
% exec ps -p [pid] -o pid,vsz,rss,args
PID VSZ RSS COMMAND
28800 12696 2004 ./tclsh
% for {set i 0} {$i < 1000} {incr i} {
thread::join [thread::create -joinable {}]
}
% exec ps -p [pid] -o pid,vsz,rss,args
PID VSZ RSS COMMAND
28800 48276 29440 ./tclsh
OK, time to binary search to figure out what Tcl version introduced this
leak. :-)
-- Dossy
--
Dossy Shiobara mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.