On Tue, Dec 13, 2011 at 12:07:59AM +0100, Sven Van Caekenberghe wrote:
Today I tried to find out if it would be possible to allocate a large amount of memory in a VM.
<snip>
Basically it seems to work.
What I find particulary strange is that #vmStatisticsReportString starts reporting negative sizes, also the size of the 1GB ByteArray is reported as negative. Why ?
Tomorrow I might try to find out how much further I can take this ? How close to 4GB ?
Anybody else tried this ?
Hi Sven, At one time it was possible to get an image up to about 7.5 GB using a 64 bit image and VM, see attached picture. Links and information at <http://squeakvm.org/squeak64> Unfortunately VMMaker has regressed a bit in this regard and I can no longer repeat the experiment. When you see a big integer reported as negative, it is usually because of integer overflow, or from stuffing a large int value into a 32 bit int. Usually this is an issue with variable declarations, e.g. declaring a variable as signed when it is supposed to contain a positive value that may exceed the range of a signed int. Dave