Merge "RegisterNativeAllocation: Avoid case of double blocking gc."