From d9a7de589e7dfd7922b78ac2df7903dafa4ccfdd Mon Sep 17 00:00:00 2001 From: t-horikawa Date: Thu, 26 Sep 2024 13:04:04 +0900 Subject: [PATCH] make class tree_instance cache aligned --- include/tree_instance.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tree_instance.h b/include/tree_instance.h index 8beec0e..262e27c 100644 --- a/include/tree_instance.h +++ b/include/tree_instance.h @@ -9,7 +9,7 @@ namespace yakushima { -class tree_instance { +class alignas(CACHE_LINE_SIZE) tree_instance { public: bool cas_root_ptr(base_node** expected, base_node** desired) { return weakCompareExchange(&root_, expected, desired);