From: Andrew Au Date: Wed, 27 Mar 2019 00:38:27 +0000 (-0700) Subject: Eliminate EventPipeBuffer::Close() X-Git-Tag: accepted/tizen/unified/20190813.215958~54^2~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa077b43cc3a1911e67fc63eb592dd36caaa0d70;p=platform%2Fupstream%2Fcoreclr.git Eliminate EventPipeBuffer::Close() --- diff --git a/src/vm/eventpipebuffer.cpp b/src/vm/eventpipebuffer.cpp index 31646be..887fbc0 100644 --- a/src/vm/eventpipebuffer.cpp +++ b/src/vm/eventpipebuffer.cpp @@ -133,22 +133,6 @@ LARGE_INTEGER EventPipeBuffer::GetMostRecentTimeStamp() const return m_mostRecentTimeStamp; } -void EventPipeBuffer::Clear() -{ - CONTRACTL - { - NOTHROW; - GC_TRIGGERS; - MODE_ANY; - } - CONTRACTL_END; - - memset(m_pBuffer, 0, (size_t)(m_pLimit - m_pBuffer)); - m_pCurrent = GetNextAlignedAddress(m_pBuffer); - m_mostRecentTimeStamp.QuadPart = 0; - m_pLastPoppedEvent = NULL; -} - EventPipeEventInstance* EventPipeBuffer::GetNext(EventPipeEventInstance *pEvent, LARGE_INTEGER beforeTimeStamp) { CONTRACTL diff --git a/src/vm/eventpipebuffer.h b/src/vm/eventpipebuffer.h index 7b20883..c717d89 100644 --- a/src/vm/eventpipebuffer.h +++ b/src/vm/eventpipebuffer.h @@ -103,9 +103,6 @@ public: // Get the timestamp of the most recent event in the buffer. LARGE_INTEGER GetMostRecentTimeStamp() const; - // Clear the buffer. - void Clear(); - // Get the next event from the buffer as long as it is before the specified timestamp. // Input of NULL gets the first event. EventPipeEventInstance* GetNext(EventPipeEventInstance *pEvent, LARGE_INTEGER beforeTimeStamp);