[Tcl Java] Re: leaking memory

2000-10-12 Thread Mo DeJong
On Thu, 12 Oct 2000, Dan Wickstrom wrote: > > If you ask me, you time would be better spent getting the > > current code into "shape" so that it can be dropped into > > aolserver as is. > > > > The code on the branch is not really set in stone, so if > > you can provide a reasonable way to add yo

[Tcl Java] Re: leaking memory

2000-10-12 Thread Dan Wickstrom
> If you ask me, you time would be better spent getting the > current code into "shape" so that it can be dropped into > aolserver as is. > > The code on the branch is not really set in stone, so if > you can provide a reasonable way to add your stuff with > only a minimal change (like #ifdef AOLS

[Tcl Java] Re: leaking memory

2000-10-12 Thread Mo DeJong
On Thu, 12 Oct 2000, Daniel Wickstrom wrote: > > "Mo" == Mo DeJong <[EMAIL PROTECTED]> writes: > > > > Mo> What do you mean by "The jvm attach is done at the start of > Mo> the thread by a registered proc"? Are you not using: > > Mo> (*javaVM)->AttachCurrentThread() > > M

[Tcl Java] Re: leaking memory

2000-10-12 Thread Daniel Wickstrom
> "Mo" == Mo DeJong <[EMAIL PROTECTED]> writes: Mo> What do you mean by "The jvm attach is done at the start of Mo> the thread by a registered proc"? Are you not using: Mo> (*javaVM)->AttachCurrentThread() Mo> In JavaInitEnv() to attach the Tcl thread to the JVM? This is

[Tcl Java] Re: leaking memory

2000-10-12 Thread Mo DeJong
On Thu, 12 Oct 2000, Daniel Wickstrom wrote: > > "Mo" == Mo DeJong <[EMAIL PROTECTED]> writes: > > > Mo> There are two cleanup cases. > > Mo> TclThreadCleanup is called when a Tcl thread (one that was not > Mo> started inside a JVM) is terminated. TclThreadCleanup will > Mo

[Tcl Java] Re: leaking memory

2000-10-12 Thread Daniel Wickstrom
> "Mo" == Mo DeJong <[EMAIL PROTECTED]> writes: Mo> There are two cleanup cases. Mo> TclThreadCleanup is called when a Tcl thread (one that was not Mo> started inside a JVM) is terminated. TclThreadCleanup will Mo> just call DetachCurrentThread() to disconnect the Tcl thread

[Tcl Java] Re: leaking memory

2000-10-12 Thread Mo DeJong
On Thu, 12 Oct 2000, Daniel Wickstrom wrote: > > "Mo" == Mo DeJong <[EMAIL PROTECTED]> writes: > > > Mo> That does seem logical. It looks like the Class refs need to > Mo> be cleaned up. What do you think of the patch below? > > The patch looks good. I'll have to wait until tonig

[Tcl Java] Re: leaking memory

2000-10-12 Thread Daniel Wickstrom
> "Mo" == Mo DeJong <[EMAIL PROTECTED]> writes: Mo> That does seem logical. It looks like the Class refs need to Mo> be cleaned up. What do you think of the patch below? The patch looks good. I'll have to wait until tonight to apply it, as I can't seem to apply it to the version t