Merge "Introduce NativeAllocationRegistry API."