Re: [perl #18219] on_exit not portable

2002-11-08 Thread Josh Wilmes
At 8:02 on 11/08/2002 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Josh Wilmes wrote: > > > For the meantime, I have added the Parrot_exit and Parrot_on_exit function s > > to CVS. > > Thanks for providing this. I did slightly modify your patch to really > get rid of the leaks: > - test

Re: [perl #18219] on_exit not portable

2002-11-07 Thread Leopold Toetsch
Josh Wilmes wrote: For the meantime, I have added the Parrot_exit and Parrot_on_exit functions to CVS. Thanks for providing this. I did slightly modify your patch to really get rid of the leaks: - test_main calls Parrot_exit now - copied prototype to embed.h leo

Re: [perl #18219] on_exit not portable

2002-11-07 Thread Josh Wilmes
For the meantime, I have added the Parrot_exit and Parrot_on_exit functions to CVS. This will fix the leak on all platforms, for now. If you want to fix internal_exception so this isn't necessary, that's fine- we can rip this out later. --Josh At 22:21 on 11/06/2002 +0100, Leopold Toetsch <

Re: [perl #18219] on_exit not portable

2002-11-06 Thread Josh Wilmes
At 15:57 on 11/06/2002 EST, Dan Sugalski <[EMAIL PROTECTED]> wrote: > >This is was I did say above, just put comments around above > >statement if tinderboxen are the concern. > > Yeah, I think I'll do that for right now. What I'd like is a probe > for this in configure. Oh, Brent :) If an

Re: [perl #18219] on_exit not portable

2002-11-06 Thread Leopold Toetsch
Dan Sugalski wrote: - I implemented Parrot_destroy, which cleans up all internal data structures of an interpreter and frees all used mem. Right, I understand. (And I really appreciate it--this was a hanging area that didn't get nearly the proper attention it needed) The bit I don't underst

Re: [perl #18219] on_exit not portable

2002-11-06 Thread Dan Sugalski
At 9:19 PM +0100 11/6/02, Leopold Toetsch wrote: Summary of changes I did put in WRT this: - interpreter startup code is reordered so that all PMCs/Buffers are in managed memory now. - Long running programs using e.g. new interpreters on the fly would currently leak tons of memory. - Debugging m

Re: [perl #18219] on_exit not portable

2002-11-06 Thread Leopold Toetsch
Dan Sugalski wrote: At 1:47 PM -0500 11/6/02, Josh Wilmes wrote: At 13:41 on 11/06/2002 EST, Dan Sugalski <[EMAIL PROTECTED]> wrote: Well, I got bit this week by the on_exit stuff. I'm still not sure why we need this. Could someone please explain, so I don't have to yank it out? Leo sai

Re: [perl #18219] on_exit not portable

2002-11-06 Thread Josh Wilmes
At 13:55 on 11/06/2002 EST, Dan Sugalski <[EMAIL PROTECTED]> wrote: > >Leo said: > > > >> The on_exit/atexit is currently necessary to clean up behind exceptions. > >> If you don't mind memory leaks after exceptions, remove the > > Right, I saw that, I just don't understand why. If it's in as a

Re: [perl #18219] on_exit not portable

2002-11-06 Thread Dan Sugalski
At 1:47 PM -0500 11/6/02, Josh Wilmes wrote: At 13:41 on 11/06/2002 EST, Dan Sugalski <[EMAIL PROTECTED]> wrote: Well, I got bit this week by the on_exit stuff. I'm still not sure why we need this. Could someone please explain, so I don't have to yank it out? Leo said: The on_exit/atexit

Re: [perl #18219] on_exit not portable

2002-11-06 Thread Josh Wilmes
At 13:41 on 11/06/2002 EST, Dan Sugalski <[EMAIL PROTECTED]> wrote: > Well, I got bit this week by the on_exit stuff. I'm still not sure > why we need this. Could someone please explain, so I don't have to > yank it out? Leo said: > The on_exit/atexit is currently necessary to clean up behind

Re: [perl #18219] on_exit not portable

2002-11-06 Thread Dan Sugalski
At 1:31 PM -0500 11/6/02, Josh Wilmes wrote: At 7:58 on 11/06/2002 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote: Josh Wilmes wrote: > I agree. However, the point is fairly moot.. If we're going to do a > Parrot_on_exit, it's just as easy to provide our own Parrot_exit and not > need

Re: [perl #18219] on_exit not portable

2002-11-06 Thread Josh Wilmes
At 7:58 on 11/06/2002 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Josh Wilmes wrote: > > > > I agree. However, the point is fairly moot.. If we're going to do a > > Parrot_on_exit, it's just as easy to provide our own Parrot_exit and not > > need atexit() either.. it's not like atex

Re: [perl #18219] on_exit not portable

2002-11-06 Thread Leopold Toetsch
Josh Wilmes wrote: I agree. However, the point is fairly moot.. If we're going to do a Parrot_on_exit, it's just as easy to provide our own Parrot_exit and not need atexit() either.. it's not like atexit() is giving us much at that point. which would mean, that internal_exception ne

Re: [perl #18219] on_exit not portable

2002-11-05 Thread Josh Wilmes
At 21:09 on 11/05/2002 GMT, Nicholas Clark <[EMAIL PROTECTED]> wrote: > On Mon, Nov 04, 2002 at 07:45:46PM -0500, Josh Wilmes wrote: > > However, that still assumes we have atexit() everywhere. This appears to > > not be true on SunOS at least- apparently it has on_exit, though. > > IIRC ANSI

Re: [perl #18219] on_exit not portable

2002-11-05 Thread Nicholas Clark
On Mon, Nov 04, 2002 at 07:45:46PM -0500, Josh Wilmes wrote: > At 18:57 on 11/04/2002 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > > atexit is not an alternative, because we might have multiple > > interpreters to clean up like in t/op/interp_2. > > So the issue here is that on_exit can

Re: [perl #18219] on_exit not portable

2002-11-05 Thread Leopold Toetsch
Josh Wilmes wrote: At 18:57 on 11/04/2002 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote: atexit is not an alternative, because we might have multiple interpreters to clean up like in t/op/interp_2. So the issue here is that on_exit can take a parameter to be passed into the handler func

Re: [perl #18219] on_exit not portable

2002-11-04 Thread Josh Wilmes
At 18:57 on 11/04/2002 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > atexit is not an alternative, because we might have multiple > interpreters to clean up like in t/op/interp_2. So the issue here is that on_exit can take a parameter to be passed into the handler function, right? We cou

Re: [perl #18219] on_exit not portable

2002-11-04 Thread Leopold Toetsch
Andy Dougherty (via RT) wrote: That's because Solaris doesn't have on_exit. It does have atexit, but atexit doesn't take any parameters so it's not a direct drop-in replacement. The correct "fix" is not obvious to me. I suppose someone could have Configure.pl test for on_exit and only use it

[perl #18219] on_exit not portable

2002-11-04 Thread via RT
# New Ticket Created by Andy Dougherty # Please include the string: [perl #18219] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=18219 > The Solaris tinderbox is currently failing with gcc -o parrot [...] Undefined