Murad Nayal <[EMAIL PROTECTED]> writes:

[Sensible stuff, except:]
> > what sort of garbage collector it uses?
> 
> No garbage collector. uses reference counting to discard objects that
> are no longer needed.

No, R uses garbage collection with a "generational" scheme which looks
more frequently at younger objects. The vector heap is handled with
standard malloc-style memory allocation techniques (we once had code
that would compact the heap during garbage collection, but it was
found to be logically inconsistent: if you called a C routine and it
called back into R and triggered a GC, it could happen that the C
pointers were no longer pointing to the vectors they originally did).

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])             FAX: (+45) 35327907

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to