Revert "Fix more BPF alignment issues on arm64"

This reverts commit e5aa5efbac.
This commit is contained in:
Trent Nelson
2021-12-13 08:48:39 -07:00
committed by Tao Zhu
parent dc633e3385
commit bdaac86f84
3 changed files with 16 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ use solana_sdk::{
bpf_loader, bpf_loader_deprecated,
bpf_loader_upgradeable::{self, UpgradeableLoaderState},
clock::Clock,
entrypoint::{BPF_ALIGN_OF_U128, MAX_PERMITTED_DATA_INCREASE, SUCCESS},
entrypoint::{MAX_PERMITTED_DATA_INCREASE, SUCCESS},
epoch_schedule::EpochSchedule,
feature_set::{
allow_native_ids, check_seed_length, close_upgradeable_program_accounts, cpi_data_cost,
@@ -825,7 +825,7 @@ impl SyscallObject<BpfError> for SyscallAllocFree {
result: &mut Result<u64, EbpfError<BpfError>>,
) {
let align = if self.aligned {
BPF_ALIGN_OF_U128
align_of::<u128>()
} else {
align_of::<u8>()
};