[Mono-list] Is there a mechanism to precompile a method?

Sergey Chaban serge@wildwestsoftware.com
Fri, 13 Sep 2002 21:55:19 +0300


> As a garbage collector would be needed, even when reference counting is used, 
> for defragmentation, and as only a small part of the data is really cyclic, I 
> think that it would be a good thing to use reference counting and gc 
> together. This would reduce the amount of work to do for the garbage 
> collector and make it faster. Doesn't the Python memory management work this 
> way?

Don't know about Python, but similar approach is used in Inferno system and its Dis virtual machine:
http://www.vitanuova.com/inferno/papers/dis.html (see Garbage Collection section).

Sergey


----- Original Message ----- 
From: "Holger Arnold" <harnold@gmx.de>
To: <mono-list@ximian.com>
Sent: Friday, September 13, 2002 8:44 PM
Subject: Re: [Mono-list] Is there a mechanism to precompile a method?


> Hello,
> 
> > One thing I wanted to explore in the past (but there has been no need to
> > do so far) is to use implicit reference counting with cycle detection
> > for the GC engine.  It uses some extra 32 bits of memory per object
> > allocated, but it gives you the predictability you are looking for.
> >
> > There are various papers that discuss the subject, we have some linked
> > from the Mono site.
> 
> I agree, reference counting would be a viable alternative. I just don't know 
> if and how cycle detection could be done efficiently (i.e. more efficient 
> than a gc run). 
> 
> As a garbage collector would be needed, even when reference counting is used, 
> for defragmentation, and as only a small part of the data is really cyclic, I 
> think that it would be a good thing to use reference counting and gc 
> together. This would reduce the amount of work to do for the garbage 
> collector and make it faster. Doesn't the Python memory management work this 
> way?
> 
> > > I was not yet able to look at the gc interface of Mono. How difficult
> > > would it be to switch from the currently used Boehm-Weiser collector to a
> > > different one? Could this be done for single domains or threads?
> >
> > It is doable, but requires a lot of work.
> 
> Too bad. Then it is your intention to keep the Boehm collector in forever? I 
> thought that it was just an intermediate solution.
> 
> Holger
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>