That may be true for your specific case. Though, it is not true in general.
One could also potentially delete the interpreter without removing the
thread. For example, one may be using a pool of Java threads to do some
work. One thread is retrieved, creates a Tcl interp, do some work, delete
the interp, goes back into the thread pool. The thread itself is never
deleted, only the resources used by the thread.
TclBlend allows a Tcl program to use Java. It also needs to work the other
direction, which is allowing a Java program to use Tcl.
-- Jiang Wu
[EMAIL PROTECTED]
> -----Original Message-----
> From: Dan Wickstrom [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 22, 2000 11:53 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [Tcl Java] Re: possible memory.
>
>
> 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
>
----------------------------------------------------------------
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