On Sun, 22 Oct 2000, 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>
I agree that the case you describe is a concern, but I don't
see that we have a choice at this point. I would like to get
this free with the queue thing and fixing up of the Notifier
done, and then worry about overhauling the ref counting approach.
We need to get these changes finished off and merged back into
the HEAD very soon. Currently, we have no thread safe code to
point people to. Something that works for 99.999% of the cases
is better than something that works for 0% of them.
Mo DeJong
Red Hat Inc
----------------------------------------------------------------
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