Support for dynamic memory sizing