size parameter of AnnotateBenignRaceSized should be typed size_t instead of long
Describe the bug (描述bug)
AnnotateBenignRaceSized defined in butil/third_party/dynamic_annotations/dynamic_annotations.h has a parameter long size, while most modern libraries declaring it as size_t size (e.g. abseil-cpp, glog, etc.).
The mismatch causes a linking failure in TSAN mode.
To Reproduce (复现方法)
For example, building a binary with brpc (and enable glog replacement) in TSAN mode results in a linking failure, complaining about different declarations of AnnotateBenignRaceSized.
Expected behavior (期望行为) Successful TSAN build.
Versions (各种版本) OS: Ubuntu 22.04 Compiler: Clang 12.0.1 brpc: 1.2.0 protobuf: 21.1
Additional context/screenshots (更多上下文/截图) Pending.
I want to work on this.
I want to work on this issue please assign me this issue
i want to work on this issue please assign me
please review the pr @chenBright