Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[unload] and shared lib detaching

Open1111134fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 18 years ago
Descriptionplain2005-01-27 23:56:24
interp create i
interp create j
i eval [list load $file]
j eval [list load $file]
i eval [list unload -keeplibrary $file]
j eval [list unload $file]

Interp i wants library $file to be kept
in the process.  After the commands
above, will it still be kept?  Or will
the [unload] in interp j have detached it?

Seems that interp i could have its
wishes granted if the -keeplibrary
option caused interp i not to decrement
its refcount on $file.  It's not clear to me
from a brief scan of the source code whether
or not that happens.
hobbsplain2005-01-28 07:34:37
Logged In: YES 
user_id=72656

That's a good point - is that library "marked" (as would
probably be expected), or is it just a one-call check? 
Perhaps the -keeplibrary should change to -keepopen in the
'load' call (with TIP#239), and become a mark on the library?
dgp Ticket [1111134fff]: 1 change [History diff]2006-03-10 13:38:44
dgpplain2006-03-24 05:22:34
Logged In: YES 
user_id=80530


see 1452058 for more details
dgpplain2007-09-05 22:29:14
Logged In: YES 
user_id=80530
Originator: YES


Time's running out to get this
detail of [unload] functioning
resolved before beta.
dkf Ticket [1111134fff]: 1 change [History diff]2007-09-07 16:15:33
dgpplain2007-12-04 01:48:20
Logged In: YES 
user_id=80530
Originator: YES


anything left here that
should block 8.5.0 ?
dgpplain2007-12-07 02:34:42
Logged In: YES 
user_id=80530
Originator: YES


Appears this will be unresolved 
in the 8.5.0 release.
dgpplain2008-06-25 03:15:04
Logged In: YES 
user_id=80530
Originator: YES


any hope for tackling this for 8.5.3 ?
Log in (anonymous is fine) to add a comment.