Update heap size.