[Rd] Memory "leak" in readChar (PR#1483)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
26 Apr 2002 11:51:17 +0200


Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:

> > The code enclosed below demonstrates the problem. As-is, it causes the size
> > of R.bin to grow from 11MB to 50MB, even though there are no large arrays. 
> > The old Rstreams package did not do this. Also, the function readBin() does
> > not suffer from this problem.
> 
> Still there in a recent pre-1.5.0 looks like a bunch of Vcells is
> allocated but remains protected from garbage collection.
> 
> I doubt that this is something we'd dare try and fix before the
> release on Monday though.

...unless someone happens to know exactly what is going on (as Brian
apparently does)!

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._