iSqueak Wikki : insufficientMemorySpecifiedError

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Revision [437]

Most recent edit made on 2010-09-12 22:55:19 by JohnMcIntosh

Additions:
See iPhone


Deletions:
TBD




Revision [257]

The oldest known version of this page was edited on 2008-10-19 04:49:38 by JohnMcIntosh

insufficientMemorySpecifiedError


#define insufficientMemorySpecifiedError() error("Insufficient memory for this image")

Why:
If the calculated oops memory size is greater than the available heap size then we issue this message and quit

Responsibility:
When the image starts up it has an idea of how much free memory there is, this can real or virtual memory, usually the virtual memory is limited to 512MB or 1GB by some VM option which is platform dependent. However in the case where the image is running as a embedded thread inside of some other application like a browser then memory could be limited to say a value of 30MB.

MacIntosh
os-9/OSXCarbon
#define insufficientMemorySpecifiedError() plugInNotifyUser("The amount of memory specified by the 'memory' EMBED tag is not enough for the installed Squeak image file.")

This logic was created to handle the case when a Squeak image was launched as a plugin in a browser. In that case it would be using the EMBED tag as a way of indicating how much memory to use. Later we would mmap 512mb, and in 2007 we migrated to launching a headless application and passing UI/screen updates between processes.

We use notification services to signal the problem then Squeak terminates.
Cocoa:
TBD

iPhone
#define insufficientMemorySpecifiedError() plugInNotifyUser("The amount of memory specified by the Setting Slider is not enough for the installed Squeak image file.")

Not implemented yet
Unix

Windows

BUGS
Need to review this for the macintosh, the message is invalid, but still could be issued.
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0738 seconds