Create a new heapdump segment and truncate huge arrays if required, to avoid overflow of the 32 bit value representing the size. Reviewed-by: dholmes, dsamersoff