nmethod::_installed_code maintains a link to the InstalledCode instance associated with an nmethod and will be cleared out once the InstalledCode reference is dead or when the nmethod becomes a zombie. Since G1 tracks which nmethods have references into a region, special care must be take when updating this field to avoid crashes.