Skip to content

Commit ac2dd22

Browse files
two-heartripatel-fd
authored andcommitted
runtime: remove unused spad frame allocation
there is not spad_alloc in here anymore, so we can remove it. spad frame allocation are very expensive under deep asan
1 parent 9aba992 commit ac2dd22

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/flamenco/runtime/fd_executor.c

-4
Original file line numberDiff line numberDiff line change
@@ -842,8 +842,6 @@ fd_executor_validate_transaction_fee_payer( fd_exec_txn_ctx_t * txn_ctx ) {
842842
int
843843
fd_executor_setup_accessed_accounts_for_txn( fd_exec_txn_ctx_t * txn_ctx ) {
844844

845-
FD_SPAD_FRAME_BEGIN( txn_ctx->spad ) {
846-
847845
txn_ctx->accounts_cnt = 0UL;
848846

849847
fd_pubkey_t * tx_accs = (fd_pubkey_t *)((uchar *)txn_ctx->_txn_raw->raw + txn_ctx->txn_descriptor->acct_addr_off);
@@ -876,8 +874,6 @@ fd_executor_setup_accessed_accounts_for_txn( fd_exec_txn_ctx_t * txn_ctx ) {
876874
if( FD_UNLIKELY( err!=FD_RUNTIME_EXECUTE_SUCCESS ) ) return err;
877875
}
878876
return FD_RUNTIME_EXECUTE_SUCCESS;
879-
880-
} FD_SPAD_FRAME_END;
881877
}
882878

883879
/* https://github.com/anza-xyz/agave/blob/c4b42ab045860d7b13b3912eafb30e6d2f4e593f/sdk/src/transaction_context.rs#L319-L357 */

0 commit comments

Comments
 (0)