Update memory layout