shanhe72101 opened a new issue, #2561:
URL: https://github.com/apache/brpc/issues/2561

   **Describe the bug (描述bug)**
   
   代码位置src/butil/containers/doubly_buffered_data.h
   
   template <typename T, typename TLS, bool AllowBthreadSuspended>
   class DoublyBufferedData<T, TLS, AllowBthreadSuspended>::WrapperTLSGroup {
   public:
       const static size_t RAW_BLOCK_SIZE = 4096;
       const static size_t ELEMENTS_PER_BLOCK = (RAW_BLOCK_SIZE + sizeof(T) - 
1) / sizeof(T);
   
   上一行两处sizeof(T)应该改为sizeof(DoublyBufferedData::Wrapper)
   
   Wrapper类定义增加BAIDU_CACHELINE_ALIGNMENT修饰
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to