This is an automated email from the ASF dual-hosted git repository.

dgkimura pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git


The following commit(s) were added to refs/heads/develop by this push:
     new c0a8e15  GEODE-3058: Remove low fragmentation heap feature enablement
c0a8e15 is described below

commit c0a8e15d1f0a8cfedeb573925a13fe3a70a63b0b
Author: David Kimura <[email protected]>
AuthorDate: Thu Dec 7 15:56:10 2017 -0800

    GEODE-3058: Remove low fragmentation heap feature enablement
---
 cppcache/src/DistributedSystem.cpp | 54 --------------------------------------
 1 file changed, 54 deletions(-)

diff --git a/cppcache/src/DistributedSystem.cpp 
b/cppcache/src/DistributedSystem.cpp
index 8c05382..1960ac8 100644
--- a/cppcache/src/DistributedSystem.cpp
+++ b/cppcache/src/DistributedSystem.cpp
@@ -47,60 +47,6 @@ using namespace apache::geode::statistics;
 
 ACE_Recursive_Thread_Mutex* g_disconnectLock = new 
ACE_Recursive_Thread_Mutex();
 
-namespace {}  // namespace
-
-namespace apache {
-namespace geode {
-namespace client {
-void setLFH() {
-#ifdef _WIN32
-  static HINSTANCE kernelMod = nullptr;
-  if (kernelMod == nullptr) {
-    kernelMod = GetModuleHandle("kernel32");
-    if (kernelMod != nullptr) {
-      typedef BOOL(WINAPI * PHSI)(
-          HANDLE HeapHandle, HEAP_INFORMATION_CLASS HeapInformationClass,
-          PVOID HeapInformation, SIZE_T HeapInformationLength);
-      typedef HANDLE(WINAPI * PGPH)();
-      PHSI pHSI = nullptr;
-      PGPH pGPH = nullptr;
-      if ((pHSI = (PHSI)GetProcAddress(kernelMod, "HeapSetInformation")) !=
-          nullptr) {
-        // The LFH API is available
-        /* Only set LFH for process heap; causes problems in C++ framework if
-        set for all heaps
-        HANDLE hProcessHeapHandles[1024];
-        DWORD dwRet;
-        ULONG heapFragValue = 2;
-
-        dwRet= GetProcessHeaps( 1024, hProcessHeapHandles );
-        for (DWORD i = 0; i < dwRet; i++)
-        {
-          HeapSetInformation( hProcessHeapHandles[i],
-            HeapCompatibilityInformation, &heapFragValue, sizeof(heapFragValue)
-        );
-        }
-        */
-        HANDLE hProcessHeapHandle;
-        ULONG heapFragValue = 2;
-        if ((pGPH = (PGPH)GetProcAddress(kernelMod, "GetProcessHeap")) !=
-            nullptr) {
-          hProcessHeapHandle = pGPH();
-          LOGCONFIG(
-              "Setting Microsoft Windows' low-fragmentation heap for use as "
-              "the main process heap.");
-          pHSI(hProcessHeapHandle, HeapCompatibilityInformation, 
&heapFragValue,
-               sizeof(heapFragValue));
-        }
-      }
-    }
-  }
-#endif
-}
-}  // namespace client
-}  // namespace geode
-}  // namespace apache
-
 DistributedSystem::DistributedSystem(
     const std::string& name,
     std::unique_ptr<SystemProperties> sysProps)

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to