Improve gc mregistration