Move eventpipe buffer to TLS (#21817)
authorSung Yoon Whang <suwhang@microsoft.com>
Sun, 10 Feb 2019 02:25:10 +0000 (18:25 -0800)
committerGitHub <noreply@github.com>
Sun, 10 Feb 2019 02:25:10 +0000 (18:25 -0800)
commitee8cda063048305e730c92e6899cf0c523fbe483
tree1561313b98a36ead6b80779cf6c23b0f2acf739d
parent5922bc02cd9e40615ca420ee9847d2cfc3ef834a
Move eventpipe buffer to TLS (#21817)

* start ripping out eventpipe buffer to tls

* can now emit events from gc threads

* cleanup

* more cleanup

* more cleanup

* tested on linux

* Addressing PR comments

* Move things around a bit to build in Linux

* change eventpipe buffer deallocation code

* more cleanup

* this while loop doesnt do anything now

* Fix build

* fixing build

* More cleanup

* more pr comments

* Fix unix build

* more pr comments

* trying to add a message to assertion that seems to be causing CIs to fail

* more pr feedback

* handle non-2-byte aligned string payloads inside payload buffers

* some more cleanup

* Fix off by one error in null index calculation

* Make Get/SetThreadEventBufferList a static member of ThreadEventBufferList

* make only the methods public in ThreadEventBufferList

* Addressing noah's comments

* fix comment and last off by 1 error
src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipePayloadDecoder.cs
src/vm/eventpipe.cpp
src/vm/eventpipebuffer.cpp
src/vm/eventpipebuffermanager.cpp
src/vm/eventpipebuffermanager.h
src/vm/threads.cpp
src/vm/threads.h