Remove FEATURE_EXCEPTIONDISPATCHINFO
authordanmosemsft <danmose@microsoft.com>
Mon, 23 Jan 2017 04:29:22 +0000 (20:29 -0800)
committerdanmosemsft <danmose@microsoft.com>
Mon, 23 Jan 2017 04:29:22 +0000 (20:29 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/b22d638a79c93fad06ad30f49cd74c69e25deefe

src/coreclr/clr.coreclr.props
src/coreclr/clr.defines.targets
src/coreclr/clr.desktop.props
src/coreclr/src/mscorlib/mscorlib.shared.sources.props
src/coreclr/src/mscorlib/src/System/Diagnostics/Stackframe.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Stacktrace.cs
src/coreclr/src/mscorlib/src/System/Exception.cs
src/coreclr/src/mscorlib/src/System/Runtime/ExceptionServices/ExceptionServicesCommon.cs

index 6236f56..a8b9008 100644 (file)
@@ -15,7 +15,6 @@
     <FeatureDbiOopDebugging_HostOneCorex86 Condition="'$(TargetArch)' == 'i386' or '$(TargetArch)' == 'arm'">true</FeatureDbiOopDebugging_HostOneCorex86>
     <FeatureDbiOopDebugging_HostOneCoreamd64 Condition="'$(TargetArch)' == 'amd64'">true</FeatureDbiOopDebugging_HostOneCoreamd64>
     <FeatureEventTrace>true</FeatureEventTrace>
-    <FeatureExceptionDispatchInfo>true</FeatureExceptionDispatchInfo>
     <FeatureExceptionNotifications>true</FeatureExceptionNotifications>
     <FeatureFrameworkInternal>true</FeatureFrameworkInternal>
     <FeatureHijack>true</FeatureHijack>
index 3ba21c9..5bff02f 100644 (file)
@@ -33,7 +33,6 @@
         <CDefines Condition="'$(FeatureDbgPublish)' == 'true'">$(CDefines);FEATURE_DBG_PUBLISH</CDefines>
         <CDefines Condition="'$(FeatureEventTrace)' == 'true'">$(CDefines);FEATURE_EVENT_TRACE</CDefines>
         <CDefines Condition="'$(FeatureXplatEventSource)' == 'true'">$(CDefines);FEATURE_EVENTSOURCE_XPLAT</CDefines>
-        <CDefines Condition="'$(FeatureExceptionDispatchInfo)' == 'true'">$(CDefines);FEATURE_EXCEPTIONDISPATCHINFO</CDefines>
         <CDefines Condition="'$(FeatureExceptionNotifications)' == 'true'">$(CDefines);FEATURE_EXCEPTION_NOTIFICATIONS</CDefines>
         <CDefines Condition="'$(FeatureFullNGen)' == 'true'">$(CDefines);FEATURE_FULL_NGEN</CDefines>
         <CDefines Condition="'$(FeatureFusion)' == 'true'">$(CDefines);FEATURE_FUSION</CDefines>
         <DefineConstants Condition="'$(FeatureCrypto)' == 'true'">$(DefineConstants);FEATURE_CRYPTO</DefineConstants>
         <DefineConstants Condition="'$(FeatureDisplayCultureInfo)' == 'true'">$(DefineConstants);FEATURE_DISPLAY_CULTURE_INFO</DefineConstants>
         <DefineConstants Condition="'$(FeatureDisplayRegionInfo)' == 'true'">$(DefineConstants);FEATURE_DISPLAY_REGION_INFO</DefineConstants>
-        <DefineConstants Condition="'$(FeatureExceptionDispatchInfo)' == 'true'">$(DefineConstants);FEATURE_EXCEPTIONDISPATCHINFO</DefineConstants>
         <DefineConstants Condition="'$(FeatureExceptionNotifications)' == 'true'">$(DefineConstants);FEATURE_EXCEPTION_NOTIFICATIONS</DefineConstants>
         <DefineConstants Condition="'$(FeatureFusion)' == 'true'">$(DefineConstants);FEATURE_FUSION</DefineConstants>
         <DefineConstants Condition="'$(FeatureHostAssemblyResolver)' == 'true'">$(DefineConstants);FEATURE_HOST_ASSEMBLY_RESOLVER</DefineConstants>
index af96399..75a6bcc 100644 (file)
@@ -32,7 +32,6 @@
     <FeatureDisplayCultureInfo>true</FeatureDisplayCultureInfo>
     <FeatureDisplayRegionInfo>true</FeatureDisplayRegionInfo>
     <FeatureEventTrace>true</FeatureEventTrace>
-    <FeatureExceptionDispatchInfo>true</FeatureExceptionDispatchInfo>
     <FeatureExceptionNotifications>true</FeatureExceptionNotifications>
     <FeatureFullNGen>true</FeatureFullNGen>
     <FeatureFusion>true</FeatureFusion>
index 6362bf4..e25001f 100644 (file)
   </ItemGroup>
   <ItemGroup>
     <ExceptionservicesSources Include="$(BclSourcesRoot)\System\Runtime\ExceptionServices\CorruptingExceptionCommon.cs" />
-    <ExceptionservicesSources Condition="'$(FeatureExceptionDispatchInfo)' == 'true'" Include="$(BclSourcesRoot)\System\Runtime\ExceptionServices\ExceptionServicesCommon.cs" />
+    <ExceptionservicesSources Include="$(BclSourcesRoot)\System\Runtime\ExceptionServices\ExceptionServicesCommon.cs" />
     <ExceptionservicesSources Condition="'$(FeatureExceptionNotifications)' == 'true'" Include="$(BclSourcesRoot)\System\Runtime\ExceptionServices\ExceptionNotification.cs" />
   </ItemGroup>
   <ItemGroup>
index 06d675e..bdfd1e0 100644 (file)
@@ -23,10 +23,8 @@ namespace System.Diagnostics {
         private int            iLineNumber;
         private int            iColumnNumber;
     
-#if FEATURE_EXCEPTIONDISPATCHINFO
         [System.Runtime.Serialization.OptionalField]
         private bool            fIsLastFrameFromForeignExceptionStackTrace;
-#endif // FEATURE_EXCEPTIONDISPATCHINFO
 
         internal void InitMembers()
         {
@@ -36,9 +34,7 @@ namespace System.Diagnostics {
             strFileName = null;
             iLineNumber = 0;
             iColumnNumber = 0;
-#if FEATURE_EXCEPTIONDISPATCHINFO
             fIsLastFrameFromForeignExceptionStackTrace = false;
-#endif // FEATURE_EXCEPTIONDISPATCHINFO
 
         }
 
@@ -142,7 +138,6 @@ namespace System.Diagnostics {
             iColumnNumber = iCol;
         }
 
-#if FEATURE_EXCEPTIONDISPATCHINFO
         internal virtual void SetIsLastFrameFromForeignExceptionStackTrace (bool fIsLastFrame)
         {
             fIsLastFrameFromForeignExceptionStackTrace = fIsLastFrame;
@@ -152,7 +147,6 @@ namespace System.Diagnostics {
         {
             return fIsLastFrameFromForeignExceptionStackTrace;
         }
-#endif // FEATURE_EXCEPTIONDISPATCHINFO
 
         // Returns the method the frame is executing
         // 
index 7dc5d9d..128ae3c 100644 (file)
@@ -49,10 +49,8 @@ namespace System.Diagnostics {
         private String[] rgFilename;
         private int[] rgiLineNumber;
         private int[] rgiColumnNumber;
-#if FEATURE_EXCEPTIONDISPATCHINFO
         [OptionalField]
         private bool[] rgiLastFrameFromForeignExceptionStackTrace;
-#endif // FEATURE_EXCEPTIONDISPATCHINFO
         private GetSourceLineInfoDelegate getSourceLineInfo;
         private int iFrameCount;
 #pragma warning restore 414
@@ -86,9 +84,7 @@ namespace System.Diagnostics {
             rgiColumnNumber = null;
             getSourceLineInfo = null;
 
-#if FEATURE_EXCEPTIONDISPATCHINFO
             rgiLastFrameFromForeignExceptionStackTrace = null;
-#endif // FEATURE_EXCEPTIONDISPATCHINFO
 
             // 0 means capture all frames.  For StackTraces from an Exception, the EE always
             // captures all frames.  For other uses of StackTraces, we can abort stack walking after
@@ -198,12 +194,10 @@ namespace System.Diagnostics {
         public virtual int GetLineNumber(int i) { return rgiLineNumber == null ? 0 : rgiLineNumber[i];}
         public virtual int GetColumnNumber(int i) { return rgiColumnNumber == null ? 0 : rgiColumnNumber[i];}
 
-#if FEATURE_EXCEPTIONDISPATCHINFO
         public virtual bool IsLastFrameFromForeignExceptionStackTrace(int i) 
         { 
             return (rgiLastFrameFromForeignExceptionStackTrace == null)?false:rgiLastFrameFromForeignExceptionStackTrace[i];
         } 
-#endif // FEATURE_EXCEPTIONDISPATCHINFO
 
         public virtual int GetNumberOfFrames() { return iFrameCount;}
         public virtual void SetNumberOfFrames(int i) { iFrameCount = i;}
@@ -468,9 +462,7 @@ namespace System.Diagnostics {
                         sfTemp.SetOffset(StackF.GetOffset(i));
                         sfTemp.SetILOffset(StackF.GetILOffset(i));
 
-#if FEATURE_EXCEPTIONDISPATCHINFO
                     sfTemp.SetIsLastFrameFromForeignExceptionStackTrace(StackF.IsLastFrameFromForeignExceptionStackTrace(i));
-#endif // FEATURE_EXCEPTIONDISPATCHINFO
 
                         if (fNeedFileInfo)
                         {
@@ -680,13 +672,11 @@ namespace System.Diagnostics {
                         }
                     }
 
-#if FEATURE_EXCEPTIONDISPATCHINFO
                     if (sf.GetIsLastFrameFromForeignExceptionStackTrace())
                     {
                         sb.Append(Environment.NewLine);
                         sb.Append(Environment.GetResourceString("Exception_EndStackTraceFromPreviousThrow"));
                     }
-#endif // FEATURE_EXCEPTIONDISPATCHINFO
                 }
             }
 
index 026ce4e..ebf5819 100644 (file)
@@ -660,7 +660,6 @@ namespace System {
             _stackTraceString = null;
         }
         
-#if FEATURE_EXCEPTIONDISPATCHINFO
 
         // This is the object against which a lock will be taken
         // when attempt to restore the EDI. Since its static, its possible
@@ -784,7 +783,6 @@ namespace System {
                 }
             }
         }
-#endif // FEATURE_EXCEPTIONDISPATCHINFO
 
         private String _className;  //Needed for serialization.  
         private MethodBase _exceptionMethod;  //Needed for serialization.  
index 905f12d..e8eb691 100644 (file)
@@ -15,7 +15,6 @@
 ** 
 =============================================================================*/
 
-#if FEATURE_EXCEPTIONDISPATCHINFO
 namespace System.Runtime.ExceptionServices {
     using System;
     
@@ -132,4 +131,3 @@ namespace System.Runtime.ExceptionServices {
         }
     }
 }
-#endif // FEATURE_EXCEPTIONDISPATCHINFO