On Sat, Jun 05, 2010 at 05:39:48PM +0200, Oscar Nierstrasz wrote:
Fixed in 4.2.4 VM.
- on
On 5 Jun 2010, at 11:39, Oscar Nierstrasz wrote:
http://code.google.com/p/pharo/issues/detail?id=2507
The following test in KernelTests-Exception fails in PharoCore1.1
AllocationTest>>testOneGigAllocation
This test tries to allocate one gig of memory and verify that it either succeeds with the right size of array, or allocation should fail. Instead we get an array of size 0.
Curiously:
(Array new: 1024*1024*1023) size. -> "Warning! Pharo is almost out of memory!" (Array new: 1024*1024*1024) size. -> 0 (Array new: 1024*1024*1025) size. -> 1048576
Array>>new: runs primitive 71, so this appears to be a VM bug.
Oscar Nierstrasz
Hi, I closed the bug report in Mantis based on this. I also checked on Linux, and it works fine there too. To be honest I can't recall what we changed to fix this, so if anyone runs into this problem again please reopen the issue. Dave