a constrained RingBuffer optimized for fast push
Details
Details
Diff Detail
Diff Detail
- Repository
- rCRT Compiler Runtime
- Build Status
Buildable 22033 Build 22033: arc lint + arc unit
Paths
| Differential D51196
Add a RingBuffer class to sanitizer_common ClosedPublic Authored by kcc on Aug 23 2018, 4:38 PM.
Details Summary a constrained RingBuffer optimized for fast push
Diff Detail
Event TimelineHerald added subscribers: Restricted Project, delcypher, mgorny, kubamracek. · View Herald TranscriptAug 23 2018, 4:38 PM This revision is now accepted and ready to land.Aug 28 2018, 4:31 PM Closed by commit rCRT340884: Add a RingBuffer class to sanitizer_common (authored by kcc). · Explain WhyAug 28 2018, 4:33 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 162974 lib/sanitizer_common/CMakeLists.txt
lib/sanitizer_common/sanitizer_ring_buffer.h
lib/sanitizer_common/tests/CMakeLists.txt
lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cc
|
I think you need to check that sizeof(T) is divisible by sizeof(void*), otherwise wrap-around check is not correct.