link page_heap_test with entirety of tcmalloc_minimal
This makes page_heap_test a bit more uniform with rest of things and prevents any future missing symbols issues.
This commit is contained in:
parent
5f9eb91129
commit
5fabaea30d
|
@ -334,7 +334,7 @@ pagemap_unittest_LDADD = libcommon.la libgtest.la
|
|||
# we have.
|
||||
TESTS += page_heap_test
|
||||
page_heap_test_SOURCES = src/tests/page_heap_test.cc \
|
||||
$(MINIMAL_MALLOC_SRC)
|
||||
$(libtcmalloc_minimal_la_SOURCES)
|
||||
page_heap_test_CXXFLAGS = -DNO_HEAP_CHECK -DNO_TCMALLOC_SAMPLES $(AM_CXXFLAGS)
|
||||
page_heap_test_CPPFLAGS = $(gtest_CPPFLAGS)
|
||||
page_heap_test_LDADD = libcommon.la libgtest.la
|
||||
|
|
|
@ -100,7 +100,7 @@ template <> class MapSelector<32> {
|
|||
// contiguous runs of pages (called a "span").
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
class PERFTOOLS_DLL_DECL PageHeap {
|
||||
class PageHeap {
|
||||
public:
|
||||
PageHeap() : PageHeap(1) {}
|
||||
PageHeap(Length smallest_span_size);
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>PERFTOOLS_DLL_DECL=;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>NO_HEAP_CHECK;NO_TCMALLOC_SAMPLES;PERFTOOLS_DLL_DECL=;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<EnforceTypeConversionRules>true</EnforceTypeConversionRules>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
|
@ -129,7 +129,7 @@
|
|||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>PERFTOOLS_DLL_DECL=;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>NO_HEAP_CHECK;NO_TCMALLOC_SAMPLES;PERFTOOLS_DLL_DECL=;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<EnforceTypeConversionRules>true</EnforceTypeConversionRules>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
|
@ -140,7 +140,7 @@
|
|||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Patch|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>PERFTOOLS_DLL_DECL=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>NO_HEAP_CHECK;NO_TCMALLOC_SAMPLES;PERFTOOLS_DLL_DECL=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<EnforceTypeConversionRules>true</EnforceTypeConversionRules>
|
||||
|
@ -154,7 +154,7 @@
|
|||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Override|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>PERFTOOLS_DLL_DECL=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>NO_HEAP_CHECK;NO_TCMALLOC_SAMPLES;PERFTOOLS_DLL_DECL=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
|
@ -169,7 +169,7 @@
|
|||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Patch|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>PERFTOOLS_DLL_DECL=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>NO_HEAP_CHECK;NO_TCMALLOC_SAMPLES;PERFTOOLS_DLL_DECL=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<EnforceTypeConversionRules>true</EnforceTypeConversionRules>
|
||||
|
@ -183,7 +183,7 @@
|
|||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Override|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>PERFTOOLS_DLL_DECL=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>NO_HEAP_CHECK;NO_TCMALLOC_SAMPLES;PERFTOOLS_DLL_DECL=;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
|
@ -220,6 +220,12 @@
|
|||
<ClCompile Include="..\..\src\thread_cache.cc" />
|
||||
<ClCompile Include="..\..\src\thread_cache_ptr.cc" />
|
||||
<ClCompile Include="..\..\src\windows\port.cc" />
|
||||
<ClCompile Include="..\..\src\windows\ia32_modrm_map.cc" />
|
||||
<ClCompile Include="..\..\src\windows\ia32_opcode_map.cc" />
|
||||
<ClCompile Include="..\..\src\windows\patch_functions.cc" />
|
||||
<ClCompile Include="..\..\src\windows\mini_disassembler.cc" />
|
||||
<ClCompile Include="..\..\src\windows\preamble_patcher.cc" />
|
||||
<ClCompile Include="..\..\src\windows\preamble_patcher_with_stub.cc" />
|
||||
<ClCompile Include="..\..\src\windows\system-alloc.cc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -80,6 +80,24 @@
|
|||
<ClCompile Include="..\..\src\windows\port.cc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\windows\ia32_modrm_map.cc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\windows\ia32_opcode_map.cc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\windows\mini_disassembler.cc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\windows\patch_functions.cc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>>
|
||||
<ClCompile Include="..\..\src\windows\preamble_patcher.cc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\windows\preamble_patcher_with_stub.cc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\windows\system-alloc.cc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
|
|
Loading…
Reference in New Issue