On Thu, 24 Aug 2000, Daniel Wickstrom wrote:

> >>>>> "Mo" == Mo DeJong <[EMAIL PROTECTED]> writes:
>     Mo> So it looks like you are right, we need to put the method
>     Mo> cache in thread local storage. The contract branch is clearly
>     Mo> not finished, there is a lot of work that still needs to be
>     Mo> done.
> Ok thanks for the sanity check.  Could you summarize the changes that
> you are going to make to the ajub contract branch?  Is there anything
> else that needs to be put into thread-local storage?  It seems that
> the notifier code will need to change also.  Is that correct?

1. Make sure everything is thread safe.
   I think it will be ok after putting JavaInfo in thread
   local storage, but more eyes on a problem always help.

2. Use Tcl threaded notifier instead of the current hack.
   I think we just need to add a TclThread filed to the
   tcl.lang.Interp and set it during the Interp init.
   We then use that TclThread pointer to wake up
   the Tcl Notifier in the other thread.

3. Incr and Decr objects in the Tcl way, instead of trying
   to garbage collect dangling pointers.
   This one is going to be painful, but it needs to be
   done. I have a "sort of" working patch, but there is
   a lot left to do (tracking down the missing incr/decr calls).

There is some other stuff, but these are the major pieces.

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

Reply via email to