diff options
| author | Douglas Yung <douglas.yung@sony.com> | 2018-10-19 04:09:32 +0000 |
|---|---|---|
| committer | Douglas Yung <douglas.yung@sony.com> | 2018-10-19 04:09:32 +0000 |
| commit | e61c8eb98f40a10a71d4d5c2f90d27b5d9d270bf (patch) | |
| tree | d908d25065b82a5971eaaf0ad03211160e7afd30 /compiler-rt/lib/xray/xray_buffer_queue.h | |
| parent | 392e0061294cc7933f610f306237076775867259 (diff) | |
| download | bcm5719-llvm-e61c8eb98f40a10a71d4d5c2f90d27b5d9d270bf.tar.gz bcm5719-llvm-e61c8eb98f40a10a71d4d5c2f90d27b5d9d270bf.zip | |
Revert commit r344670 as the test fails on a bot http://lab.llvm.org:8011/builders/clang-cmake-armv7-full/builds/2683/.
llvm-svn: 344771
Diffstat (limited to 'compiler-rt/lib/xray/xray_buffer_queue.h')
| -rw-r--r-- | compiler-rt/lib/xray/xray_buffer_queue.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/compiler-rt/lib/xray/xray_buffer_queue.h b/compiler-rt/lib/xray/xray_buffer_queue.h index cbd42835f8a..c1fa9fab768 100644 --- a/compiler-rt/lib/xray/xray_buffer_queue.h +++ b/compiler-rt/lib/xray/xray_buffer_queue.h @@ -33,7 +33,6 @@ class BufferQueue { public: struct Buffer { atomic_uint64_t Extents{0}; - uint64_t Generation{0}; void *Data = nullptr; size_t Size = 0; }; @@ -131,10 +130,6 @@ private: // Count of buffers that have been handed out through 'getBuffer'. size_t LiveBuffers; - // We use a generation number to identify buffers and which generation they're - // associated with. - atomic_uint64_t Generation; - public: enum class ErrorCode : unsigned { Ok, @@ -142,7 +137,6 @@ public: QueueFinalizing, UnrecognizedBuffer, AlreadyFinalized, - AlreadyInitialized, }; static const char *getErrorString(ErrorCode E) { @@ -157,8 +151,6 @@ public: return "buffer being returned not owned by buffer queue"; case ErrorCode::AlreadyFinalized: return "queue already finalized"; - case ErrorCode::AlreadyInitialized: - return "queue already initialized"; } return "unknown error"; } @@ -189,23 +181,10 @@ public: /// the buffer being released. ErrorCode releaseBuffer(Buffer &Buf); - /// Initializes the buffer queue, starting a new generation. We can re-set the - /// size of buffers with |BS| along with the buffer count with |BC|. - /// - /// Returns: - /// - ErrorCode::Ok when we successfully initialize the buffer. This - /// requires that the buffer queue is previously finalized. - /// - ErrorCode::AlreadyInitialized when the buffer queue is not finalized. - ErrorCode init(size_t BS, size_t BC); - bool finalizing() const { return atomic_load(&Finalizing, memory_order_acquire); } - uint64_t generation() const { - return atomic_load(&Generation, memory_order_acquire); - } - /// Returns the configured size of the buffers in the buffer queue. size_t ConfiguredBufferSize() const { return BufferSize; } |

