[Rd] gcinfo/R_alloc inconsistency

Thomas Lumley thomas@biostat.washington.edu
Thu, 27 Apr 2000 12:00:23 -0700 (PDT)


gcinfo reports the amount of remaining heap using
	vcells = R_VSize - (R_VTop - R_VHeap);

but R_alloc tests
        if (R_VMax - R_VTop < size)
		mem_err_heap(size);


This means that you can get an out of memory error when gcinfo insists
there are vast amounts of memory left.


	-thomas

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._