diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2017-02-10 20:35:12 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2017-02-10 20:35:12 +0900 |
commit | 4b11dc566a5bbfa1378d6266525c281b028abcc8 (patch) | |
tree | b48831a898906734f8884d08b6e18f1144ee2b82 /src/mscorlib/src/System/Diagnostics/Eventing/FrameworkEventSource.cs | |
parent | db20f3f1bb8595633a7e16c8900fd401a453a6b5 (diff) | |
download | coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.gz coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.bz2 coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.zip |
Imported Upstream version 1.0.0.9910upstream/1.0.0.9910
Diffstat (limited to 'src/mscorlib/src/System/Diagnostics/Eventing/FrameworkEventSource.cs')
-rw-r--r-- | src/mscorlib/src/System/Diagnostics/Eventing/FrameworkEventSource.cs | 70 |
1 files changed, 56 insertions, 14 deletions
diff --git a/src/mscorlib/src/System/Diagnostics/Eventing/FrameworkEventSource.cs b/src/mscorlib/src/System/Diagnostics/Eventing/FrameworkEventSource.cs index 6d3e28fcab..80c524b350 100644 --- a/src/mscorlib/src/System/Diagnostics/Eventing/FrameworkEventSource.cs +++ b/src/mscorlib/src/System/Diagnostics/Eventing/FrameworkEventSource.cs @@ -86,7 +86,10 @@ namespace System.Diagnostics.Tracing { // WriteEvent overloads (to avoid the "params" EventSource.WriteEvent // optimized for common signatures (used by the ThreadTransferSend/Receive events) - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Concurrency", "CA8001", Justification = "This does not need to be correct when racing with other threads")] private unsafe void WriteEvent(int eventId, long arg1, int arg2, string arg3, bool arg4) { @@ -110,7 +113,10 @@ namespace System.Diagnostics.Tracing { } // optimized for common signatures (used by the ThreadTransferSend/Receive events) - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Concurrency", "CA8001", Justification = "This does not need to be correct when racing with other threads")] private unsafe void WriteEvent(int eventId, long arg1, int arg2, string arg3) { @@ -132,7 +138,10 @@ namespace System.Diagnostics.Tracing { } // optimized for common signatures (used by the BeginGetResponse/BeginGetRequestStream events) - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Concurrency", "CA8001", Justification = "This does not need to be correct when racing with other threads")] private unsafe void WriteEvent(int eventId, long arg1, string arg2, bool arg3, bool arg4) { @@ -156,7 +165,10 @@ namespace System.Diagnostics.Tracing { } // optimized for common signatures (used by the EndGetRequestStream event) - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Concurrency", "CA8001", Justification = "This does not need to be correct when racing with other threads")] private unsafe void WriteEvent(int eventId, long arg1, bool arg2, bool arg3) { @@ -174,7 +186,10 @@ namespace System.Diagnostics.Tracing { } // optimized for common signatures (used by the EndGetResponse event) - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Concurrency", "CA8001", Justification = "This does not need to be correct when racing with other threads")] private unsafe void WriteEvent(int eventId, long arg1, bool arg2, bool arg3, int arg4) { @@ -479,7 +494,10 @@ namespace System.Diagnostics.Tracing { public void ThreadPoolEnqueueWork(long workID) { WriteEvent(30, workID); } - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR public unsafe void ThreadPoolEnqueueWorkObject(object workID) { // convert the Object Id to a long ThreadPoolEnqueueWork((long) *((void**) JitHelpers.UnsafeCastToStackPointer(ref workID))); @@ -490,7 +508,10 @@ namespace System.Diagnostics.Tracing { WriteEvent(31, workID); } - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR public unsafe void ThreadPoolDequeueWorkObject(object workID) { // convert the Object Id to a long ThreadPoolDequeueWork((long) *((void**) JitHelpers.UnsafeCastToStackPointer(ref workID))); @@ -524,25 +545,37 @@ namespace System.Diagnostics.Tracing { WriteEvent(143, id, success, synchronous); } - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR public unsafe void BeginGetResponse(object id, string uri, bool success, bool synchronous) { if (IsEnabled()) GetResponseStart(IdForObject(id), uri, success, synchronous); } - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR public unsafe void EndGetResponse(object id, bool success, bool synchronous, int statusCode) { if (IsEnabled()) GetResponseStop(IdForObject(id), success, synchronous, statusCode); } - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR public unsafe void BeginGetRequestStream(object id, string uri, bool success, bool synchronous) { if (IsEnabled()) GetRequestStreamStart(IdForObject(id), uri, success, synchronous); } - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR public unsafe void EndGetRequestStream(object id, bool success, bool synchronous) { if (IsEnabled()) GetRequestStreamStop(IdForObject(id), success, synchronous); @@ -563,7 +596,10 @@ namespace System.Diagnostics.Tracing { // id - is a managed object. it gets translated to the object's address. ETW listeners must // keep track of GC movements in order to correlate the value passed to XyzSend with the // (possibly changed) value passed to XyzReceive - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR public unsafe void ThreadTransferSendObj(object id, int kind, string info, bool multiDequeues) { ThreadTransferSend((long) *((void**) JitHelpers.UnsafeCastToStackPointer(ref id)), kind, info, multiDequeues); } @@ -583,7 +619,10 @@ namespace System.Diagnostics.Tracing { // id - is a managed object. it gets translated to the object's address. ETW listeners must // keep track of GC movements in order to correlate the value passed to XyzSend with the // (possibly changed) value passed to XyzReceive - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR public unsafe void ThreadTransferReceiveObj(object id, int kind, string info) { ThreadTransferReceive((long) *((void**) JitHelpers.UnsafeCastToStackPointer(ref id)), kind, info); } @@ -603,7 +642,10 @@ namespace System.Diagnostics.Tracing { // id - is a managed object. it gets translated to the object's address. ETW listeners must // keep track of GC movements in order to correlate the value passed to XyzSend with the // (possibly changed) value passed to XyzReceive - [NonEvent, System.Security.SecuritySafeCritical] + [NonEvent] +#if !CORECLR + [System.Security.SecuritySafeCritical] +#endif // !CORECLR public unsafe void ThreadTransferReceiveHandledObj(object id, int kind, string info) { ThreadTransferReceive((long) *((void**) JitHelpers.UnsafeCastToStackPointer(ref id)), kind, info); } |