[Vm-dev] [squeak-dev] Endless recursion: "String new: -1"

Eliot Miranda eliot.miranda at gmail.com
Thu Jul 7 21:24:59 UTC 2016



> On Jul 7, 2016, at 2:03 PM, Tobias Pape <Das.Linux at gmx.de> wrote:
> 
> 
> 
>> On 07.07.2016, at 19:48, Eliot Miranda <eliot.miranda at gmail.com> wrote:
>> 
>> I disagree.  There are implementation limits.  So answering #'unsupported operation' or #'bad argument 's as logical and defensible as #'out of memory' and actually truer.  The VM does /not/ try and allocate memory beyond the address space size.  So actually the failure for > the range 0 to 2^32-1 or 0 to 2^64-1 as #'out of memory' is untrue; the reason is not because the ysste, os out of memory; the reason is that this is a bad argument, outside of the valid range of the primitive.
> 
> Disregarding my other tongue in cheek reply, 
> does that mean, the test worked in older images/Vms, because those treated every failure due to
> arguments (be it size or kind) as 'out of memory'?

Not quite.  The code used to work because there were no primitive error codes and so u teepee ration of wha was wrong was left up to the image code, inferring (sometimes inaccurately) what had failed from the arguments.

> 
> Best regards
>    -Tobias


More information about the Vm-dev mailing list