Merge changes I310e3daf,I3f662586

* changes:
  Remove blocking case from RegisterNativeAllocation.
  Revise 004-NativeAllocations test.