How to limit the old space size in the VM

We can limit the size of the old space size using by passing it a value in bytes.

 Smalltalk vm maxOldSpaceSize: 6 * (1024 * 1024 * 1024)
  

To reset the old space size we can set a value of zero.

 Smalltalk vm maxOldSpaceSize: 0