minorfix(imscope): moving alignas from struct type to atomic variable to avoid psABI note

Signed-off-by: Turker Yilmaz <turker87@gmail.com>
This commit is contained in:
Turker Yilmaz
2026-06-26 17:02:17 +02:00
parent c4125d1c74
commit 3dbb22cad8

View File

@@ -24,13 +24,13 @@
#define MAX_KBYTES_WRITTEN_PER_SESSION (1000 * 1000)
ImScopeDataWrapper scope_array[EXTRA_SCOPE_TYPES];
typedef struct alignas(hardware_destructive_interference_size) ImScopeDumpInstruction {
typedef struct ImScopeDumpInstruction {
int slot;
int frame;
const char *cause;
} ImScopeDumpInstruction;
std::atomic<ImScopeDumpInstruction> dump_instruction;
alignas(hardware_destructive_interference_size) std::atomic<ImScopeDumpInstruction> dump_instruction;
ImScopeDumpInstruction void_instruction({-1, -1, nullptr});
extern "C" void imscope_record_autoinit(void *dataptr)