Merge "Align allocation entrypoints implementation between arm/arm64/x86/x64."