Skip to content

Instantly share code, notes, and snippets.

@HenrikHoyer
Created June 26, 2012 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HenrikHoyer/2997441 to your computer and use it in GitHub Desktop.
Save HenrikHoyer/2997441 to your computer and use it in GitHub Desktop.
Change the VSE VM memory limits
x := 500.
path := 'c:\temp\360.exe'.
y := VirtualMachineConfiguration fromFile: path.
newSpace := y newSpaceBytes = 0 ifTrue: [ 256 * 1024 ] ifFalse: [ y newSpaceBytes ].
flipSpace := y flipSpaceBytes = 0 ifTrue: [ 256 * 1024 ] ifFalse: [ y flipSpaceBytes ].
padding := y paddingSizeBytes = 0 ifTrue: [ 32 * 1024 ] ifFalse: [ y paddingSizeBytes ].
y arenaBytes: (x * 1024 * 1024 ).
y newSpaceBytes: newSpace.
y flipSpaceBytes: flipSpace.
y paddingSizeBytes: padding.
y oldSpaceBytes: (x * 1024 * 1024) - newSpace - flipSpace - (32768 max: padding).
y toFile: path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment