"occasionally reload blocks of code from disk" - It's not that simple. An ECC system avoids most HW related issues but does not protect you from SW errors which probably accounts for most rotting.
Why reboot it in the first place? If the HW has ECC, the SW does not rot unless it is poorly written.
Why reboot it in the first place? If the HW has ECC, the SW does not rot unless it is poorly written.