Jiang Wu wrote:

> Let's not forget there is a problem with the putting object on a queue for
> deletion by the interpreter.  As the GC may run at a random time, it is
> possible when a Cobject is being finalized, the associated interpreter is
> already deleted.
>
> 1. Create a thread,
> 2. Add a Tcl interpreter
> 3. Do some Tcl work
> 4. Delete the Tcl interpreter
> 5. Delete the thread
>
> 6. <GC runs to finalize objects created in the above process>
>

It seems that we're preventing this by having the thread cleanup routine detach
the jvm thread.  All of the java objects would be finalized when the thread was
detached.  Of course, maybe I don't understand what you mean.  In aolserver,
the case that you're talking about would never happen.


-Dan

----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com

Reply via email to