From e30d4aeb6a0928fa381b1009edf5c5d525b79cac Mon Sep 17 00:00:00 2001 From: ibhatt-jumptrading <150076572+ibhatt-jumptrading@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:49:57 -0500 Subject: [PATCH] adding asan import and ASAN align (#1628) * adding import and ASAN align * inter-util deps comment --------- Co-authored-by: ibhatt-jumptrading --- src/util/fd_util.h | 1 + src/util/sanitize/fd_asan.h | 4 ++++ src/util/wksp/fd_wksp.h | 1 + 3 files changed, 6 insertions(+) diff --git a/src/util/fd_util.h b/src/util/fd_util.h index 5b6a42dd91..5420ff4423 100644 --- a/src/util/fd_util.h +++ b/src/util/fd_util.h @@ -5,6 +5,7 @@ //#include "bits/fd_bits.h" /* includes fd_util_base.h */ //#include "sanitize/fd_asan.h" /* includes fd_util_base.h" */ //#include "sanitize/fd_sanitize.h" /* includes sanitize/fd_asan.h */ +//#include "wksp/fd_wksp.h" /* includes sanitize/fd_asan.h */ //#include "cstr/fd_cstr.h" /* includes bits/fd_bits.h */ //#include "io/fd_io.h" /* includes bits/fd_bits.h */ //#include "pod/fd_pod.h" /* includes cstr/fd_cstr.h */ diff --git a/src/util/sanitize/fd_asan.h b/src/util/sanitize/fd_asan.h index d98a53d151..997ec9bbd9 100644 --- a/src/util/sanitize/fd_asan.h +++ b/src/util/sanitize/fd_asan.h @@ -78,6 +78,10 @@ FD_PROTOTYPES_BEGIN FIXME: CONST CORRECT VERSIONS? */ +#ifdef FD_HAS_DEEPASAN +#define FD_ASAN_ALIGN (8UL) +#endif + #if FD_HAS_ASAN /* These are for internal use only */ diff --git a/src/util/wksp/fd_wksp.h b/src/util/wksp/fd_wksp.h index 8ff179e012..d19bf9f1d4 100644 --- a/src/util/wksp/fd_wksp.h +++ b/src/util/wksp/fd_wksp.h @@ -3,6 +3,7 @@ #include "../pod/fd_pod.h" #include "../shmem/fd_shmem.h" +#include "../sanitize/fd_asan.h" /* API for creating NUMA-aware and TLB-efficient workspaces used for complex inter-thread and inter-process shared memory communication