Today we leave nmethod on the scavenge nmethod sets after an nmethod has been unregistered. The method is later removed from the list during the flushing (deleting) of the nmethod.
We should move the the unlinking to when nmethods are unregistered, so that GCs don't visit nmethods that are about to be removed.
We should move the the unlinking to when nmethods are unregistered, so that GCs don't visit nmethods that are about to be removed.