Delete unnecessary static and update GCSample to VS2019 (#24204)
authorJan Kotas <jkotas@microsoft.com>
Wed, 24 Apr 2019 03:21:09 +0000 (20:21 -0700)
committerGitHub <noreply@github.com>
Wed, 24 Apr 2019 03:21:09 +0000 (20:21 -0700)
src/gc/gcconfig.cpp
src/gc/sample/GCSample.vcxproj
src/gc/sample/gcenv.ee.cpp

index fa31814..b3a43f1 100644 (file)
@@ -95,7 +95,7 @@ bool ParseGCHeapAffinitizeRanges(const char* cpu_index_ranges, AffinitySet* conf
 
     if (cpu_index_ranges != NULL)
     {
-        const char* number_end;
+        const char* number_end = cpu_index_ranges;
 
         do
         {
index de16164..98dadca 100644 (file)
     <ProjectGuid>{58D6B7AE-0A12-49F0-BCF7-200ED8BA445A}</ProjectGuid>
     <Keyword>Win32Proj</Keyword>
     <RootNamespace>GCSample</RootNamespace>
-    <WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
+    <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
   </PropertyGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
     <ConfigurationType>Application</ConfigurationType>
     <UseDebugLibraries>true</UseDebugLibraries>
-    <PlatformToolset>v141</PlatformToolset>
+    <PlatformToolset>v142</PlatformToolset>
     <CharacterSet>Unicode</CharacterSet>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
     <ConfigurationType>Application</ConfigurationType>
     <UseDebugLibraries>false</UseDebugLibraries>
-    <PlatformToolset>v141</PlatformToolset>
+    <PlatformToolset>v142</PlatformToolset>
     <WholeProgramOptimization>true</WholeProgramOptimization>
     <CharacterSet>Unicode</CharacterSet>
   </PropertyGroup>
index 687fd56..abf6e09 100644 (file)
@@ -13,8 +13,6 @@ MethodTable * g_pFreeObjectMethodTable;
 
 EEConfig * g_pConfig;
 
-gc_alloc_context g_global_alloc_context;
-
 bool CLREventStatic::CreateManualEventNoThrow(bool bInitialState)
 {
     m_hEvent = CreateEventW(NULL, TRUE, bInitialState, NULL);