Skip to content

Commit

Permalink
Remove FEATURE_LOADER_OPTIMIZATION
Browse files Browse the repository at this point in the history
  • Loading branch information
danmoseley committed Jan 23, 2017
1 parent 3a92622 commit c1853ff
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion clr.coreclr.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<FeatureIsymReader>true</FeatureIsymReader>
<!-- This is here for testing purposes only, and only on checked builds for x86/ARM -->
<FeatureLazyCOWPages Condition="'$(_BuildType)'!='ret' and (('$(TargetArch)' == 'i386') or ('$(TargetArch)' == 'arm'))">true</FeatureLazyCOWPages>
<FeatureLoaderOptimization>true</FeatureLoaderOptimization>
<FeatureMainClrModuleUsesCoreName>true</FeatureMainClrModuleUsesCoreName>
<FeatureMergeCultureSupportAndEngine>true</FeatureMergeCultureSupportAndEngine>
<FeatureMergeJitAndEngine>true</FeatureMergeJitAndEngine>
Expand Down
2 changes: 0 additions & 2 deletions clr.defines.targets
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
<CDefines Condition="'$(FeatureLazyCOWPages)' == 'true'">$(CDefines);FEATURE_LAZY_COW_PAGES</CDefines>
<CDefines Condition="'$(FeatureLeakCultureInfo)' == 'true'">$(CDefines);FEATURE_LEAK_CULTURE_INFO</CDefines>
<CDefines Condition="'$(FeatureLegacyNetCFDbgHostControl)' == 'true'">$(CDefines);FEATURE_LEGACYNETCF_DBG_HOST_CONTROL</CDefines>
<CDefines Condition="'$(FeatureLoaderOptimization)' == 'true'">$(CDefines);FEATURE_LOADER_OPTIMIZATION</CDefines>
<CDefines Condition="'$(FeatureMacl)' == 'true'">$(CDefines);FEATURE_MACL</CDefines>
<CDefines Condition="'$(FeatureManagedEtw)' == 'true'">$(CDefines);FEATURE_MANAGED_ETW</CDefines>
<CDefines Condition="'$(FeatureManagedEtwChannels)' == 'true'">$(CDefines);FEATURE_MANAGED_ETW_CHANNELS</CDefines>
Expand Down Expand Up @@ -150,7 +149,6 @@
<DefineConstants Condition="'$(FeatureIsostore)' == 'true'">$(DefineConstants);FEATURE_ISOSTORE</DefineConstants>
<DefineConstants Condition="'$(FeatureIsostoreLight)' == 'true'">$(DefineConstants);FEATURE_ISOSTORE_LIGHT</DefineConstants>
<DefineConstants Condition="'$(FeatureLeakCultureInfo)' == 'true'">$(DefineConstants);FEATURE_LEAK_CULTURE_INFO</DefineConstants>
<DefineConstants Condition="'$(FeatureLoaderOptimization)' == 'true'">$(DefineConstants);FEATURE_LOADER_OPTIMIZATION</DefineConstants>
<DefineConstants Condition="'$(FeatureMacl)' == 'true'">$(DefineConstants);FEATURE_MACL</DefineConstants>
<DefineConstants Condition="'$(FeatureManagedEtw)' == 'true'">$(DefineConstants);FEATURE_MANAGED_ETW</DefineConstants>
<DefineConstants Condition="'$(FeatureManagedEtwChannels)' == 'true'">$(DefineConstants);FEATURE_MANAGED_ETW_CHANNELS</DefineConstants>
Expand Down
1 change: 0 additions & 1 deletion clr.desktop.props
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
<!-- This is here for testing purposes only, and only on checked builds for x86/ARM -->
<FeatureLazyCOWPages Condition="'$(_BuildType)'!='ret' and (('$(TargetArch)' == 'i386') or ('$(TargetArch)' == 'arm'))">true</FeatureLazyCOWPages>
<FeatureLeakCultureInfo>true</FeatureLeakCultureInfo>
<FeatureLoaderOptimization>true</FeatureLoaderOptimization>
<FeatureMacl>true</FeatureMacl>
<FeatureManagedEtw>true</FeatureManagedEtw>
<FeatureManagedEtwChannels>true</FeatureManagedEtwChannels>
Expand Down
1 change: 0 additions & 1 deletion clr.props
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@
<FeatureEventTrace>false</FeatureEventTrace>
<FeatureFusion>false</FeatureFusion>
<FeatureIncludeAllInterfaces>false</FeatureIncludeAllInterfaces>
<FeatureLoaderOptimization>false</FeatureLoaderOptimization>
<FeatureMdaSupported>false</FeatureMdaSupported>
<FeatureMergeJitAndEngine>true</FeatureMergeJitAndEngine>
<FeatureMulticoreJIT>false</FeatureMulticoreJIT>
Expand Down
8 changes: 0 additions & 8 deletions src/mscorlib/src/System/AppDomain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -941,11 +941,9 @@ public Object GetData(string name)
int key = AppDomainSetup.Locate(name);
if(key == -1)
{
#if FEATURE_LOADER_OPTIMIZATION
if(name.Equals(AppDomainSetup.LoaderOptimizationKey))
return FusionStore.LoaderOptimization;
else
#endif // FEATURE_LOADER_OPTIMIZATION
{
object[] data;
lock (((ICollection)LocalStore).SyncRoot) {
Expand Down Expand Up @@ -1215,10 +1213,8 @@ private void SetupFusionStore(AppDomainSetup info, AppDomainSetup oldInfo)
nCreateContext();
#endif // FEATURE_VERSIONING

#if FEATURE_LOADER_OPTIMIZATION
if (info.LoaderOptimization != LoaderOptimization.NotSpecified || (oldInfo != null && info.LoaderOptimization != oldInfo.LoaderOptimization))
UpdateLoaderOptimization(info.LoaderOptimization);
#endif
// This must be the last action taken
_FusionStore = info;
}
Expand Down Expand Up @@ -1353,7 +1349,6 @@ private static Object Setup(Object arg)

newSetup.ApplicationBase = NormalizePath(propertyValues[i], fullCheck: true);
}
#if FEATURE_LOADER_OPTIMIZATION
else if(propertyNames[i]=="LOADER_OPTIMIZATION")
{
if(propertyValues[i]==null)
Expand All @@ -1368,7 +1363,6 @@ private static Object Setup(Object arg)
default: throw new ArgumentException(Environment.GetResourceString("Argument_UnrecognizedLoaderOptimization"), "LOADER_OPTIMIZATION");
}
}
#endif // FEATURE_LOADER_OPTIMIZATION
else if(propertyNames[i]=="TRUSTED_PLATFORM_ASSEMBLIES" ||
propertyNames[i]=="PLATFORM_RESOURCE_ROOTS" ||
propertyNames[i]=="APP_PATHS" ||
Expand Down Expand Up @@ -1520,10 +1514,8 @@ private static extern void SetupDomainSecurity(AppDomainHandle appDomain,
private extern void nSetDisableInterfaceCache();
#endif // FEATURE_COMINTEROP

#if FEATURE_LOADER_OPTIMIZATION
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal extern void UpdateLoaderOptimization(LoaderOptimization optimization);
#endif

public AppDomainSetup SetupInformation
{
Expand Down

0 comments on commit c1853ff

Please sign in to comment.