This is an automated email from the ASF dual-hosted git repository.

guangmingchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 3fed883d bthread: fix simd memory align issue (#3092)
3fed883d is described below

commit 3fed883dd559e00e8ce1e6b26f292f75783b6510
Author: fanbingxin <fanbingxin...@gmail.com>
AuthorDate: Mon Sep 15 20:25:02 2025 +0800

    bthread: fix simd memory align issue (#3092)
---
 src/bthread/task_group.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bthread/task_group.h b/src/bthread/task_group.h
index 43c91152..958f81d7 100644
--- a/src/bthread/task_group.h
+++ b/src/bthread/task_group.h
@@ -56,7 +56,7 @@ private:
 // Otherwise, use mutex to guarantee atomicity.
 class AtomicInteger128 {
 public:
-    struct Value {
+    struct BAIDU_CACHELINE_ALIGNMENT Value {
         int64_t v1;
         int64_t v2;
     };
@@ -72,7 +72,7 @@ public:
     void store(Value value);
 
 private:
-    Value BAIDU_CACHELINE_ALIGNMENT _value{};
+    Value _value{};
     // Used to protect `_cpu_time_stat' when __x86_64__ and __ARM_NEON is not 
defined.
     FastPthreadMutex _mutex;
 };


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to