From thomas@biostat.washington.edu  Thu Apr 27 20:00:23 2000
From: thomas@biostat.washington.edu (Thomas Lumley)
Date: Thu, 27 Apr 2000 12:00:23 -0700 (PDT)
Subject: [Rd] gcinfo/R_alloc inconsistency
In-Reply-To: <200004271357.OAA21290@toucan.stats.ox.ac.uk>
Message-ID: <Pine.GSO.4.21.0004271154550.28220-100000@mail.biostat.washington.edu>


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


[Rd] gcinfo/R_alloc inconsistency
Thomas Lumley