iSqueak Wikki : sqShrinkMemoryBy

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

Revision [427]

Most recent edit made on 2010-09-12 22:35:49 by JohnMcIntosh

Additions:
See iPhone


Deletions:
TBD




Revision [204]

Edited on 2008-10-17 01:17:44 by JohnMcIntosh

Additions:
may use mmap to remap the memory size, but this is unlikely since that logic is turned off by default, otherwise


Deletions:
may use mmap to remap the memory size, but this is unlikely, otherwise




Revision [203]

The oldest known version of this page was edited on 2008-10-17 01:14:43 by JohnMcIntosh

sqInt sqShrinkMemoryBy(sqInt oldLimit, sqInt delta)


Parms:
oldLimit current end of oops memory limit
delta how much to shrink by
return: new limit, or old limit if failure
From: Interpreter
Why:
To shrink the oops space

Responsibility:
This logic comes from windows

MacIntosh
os-9/OSXCarbon
Just slide the pointer downwards, exploit sqGrowMemoryBy using a negative number
Cocoa:
TBD

iPhone
Just slide the pointer downwards, exploit sqGrowMemoryBy using a negative number

Unix
may use mmap to remap the memory size, but this is unlikely, otherwise
Just slide the pointer downwards

Windows
Use VirtualFree to free memory, if it fails return the old limit

BUGS

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in -0.1755 seconds