Put the serialization marker under its own IFDEF. (#11568)
authorBrian Robbins <brianrob@microsoft.com>
Fri, 12 May 2017 21:42:04 +0000 (14:42 -0700)
committerGitHub <noreply@github.com>
Fri, 12 May 2017 21:42:04 +0000 (14:42 -0700)
src/vm/eventpipeeventinstance.cpp

index 7877b79..dc84c04 100644 (file)
@@ -89,7 +89,7 @@ void EventPipeEventInstance::FastSerialize(FastSerializer *pSerializer, StreamLa
     }
     CONTRACTL_END;
 
-#ifdef _DEBUG
+#ifdef EVENTPIPE_EVENT_MARKER
     // Useful for diagnosing serialization bugs.
     const unsigned int value = 0xDEADBEEF;
     pSerializer->WriteBuffer((BYTE*)&value, sizeof(value));