xinyiZzz commented on pull request #7911:
URL: https://github.com/apache/incubator-doris/pull/7911#issuecomment-1023861894


   > I did some investigation. It's not easy to mask this symbol, which is 
meant to be added to the libc++abi. It's also not safe to use the polyfill 
implementation from some libc++api directly. I'd suggest the following:
   > 
   > 1. use clang toolchain
   > 2. keep thread_local with trivial destructor if gcc is used.
   
   Thanks for the answer~ @amosbird 
   Compiling with clang is indeed fine.
   Regarding the second point, do you mean changing the thread_local variable 
to a member variable of the class? For example, abstract a parent class to save 
this variable. or other meanings.
   
   My pr: https://github.com/apache/incubator-doris/pull/7198
   I want to track all memory requests during a thread lifetime via 
thread_local + TCMalloc hook, like Clickhouse does.


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



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

Reply via email to