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

Signed-off-by: default avatarTurker Yilmaz <turker87@gmail.com>
parent c4125d1c
...@@ -24,13 +24,13 @@ ...@@ -24,13 +24,13 @@
#define MAX_KBYTES_WRITTEN_PER_SESSION (1000 * 1000) #define MAX_KBYTES_WRITTEN_PER_SESSION (1000 * 1000)
ImScopeDataWrapper scope_array[EXTRA_SCOPE_TYPES]; ImScopeDataWrapper scope_array[EXTRA_SCOPE_TYPES];
typedef struct alignas(hardware_destructive_interference_size) ImScopeDumpInstruction { typedef struct ImScopeDumpInstruction {
int slot; int slot;
int frame; int frame;
const char *cause; const char *cause;
} ImScopeDumpInstruction; } ImScopeDumpInstruction;
std::atomic<ImScopeDumpInstruction> dump_instruction; alignas(hardware_destructive_interference_size) std::atomic<ImScopeDumpInstruction> dump_instruction;
ImScopeDumpInstruction void_instruction({-1, -1, nullptr}); ImScopeDumpInstruction void_instruction({-1, -1, nullptr});
extern "C" void imscope_record_autoinit(void *dataptr) extern "C" void imscope_record_autoinit(void *dataptr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment