Change registerNativeAllocation to long argument am: f57f7d4cac
am: f0b3d333b5

Change-Id: Ib22eeaf7c4a92f4b1fa2c413409d06ce40c817a8