[Pharo-project] Issue 2507: Oversized allocation does not fail correctly
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
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
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I suggested a couple of times to update the download link of the Mac vm of the website to 4.2.4. Adrian, can we do this? Cheers Mariano On Sat, Jun 5, 2010 at 12:39 PM, Oscar Nierstrasz <oscar@iam.unibe.ch>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
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I updated the link. Thanks for reminding... Cheers, Adrian On Jun 5, 2010, at 19:21 , Mariano Martinez Peck wrote:
I suggested a couple of times to update the download link of the Mac vm of the website to 4.2.4.
Adrian, can we do this?
Cheers
Mariano
On Sat, Jun 5, 2010 at 12:39 PM, Oscar Nierstrasz <oscar@iam.unibe.ch>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
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
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
participants (4)
-
Adrian Lienhard -
David T. Lewis -
Mariano Martinez Peck -
Oscar Nierstrasz