logic: fixed application crash on windows if JVM tries to allocate too much memory by reducing the amount of allocated memory to the available size.

This commit is contained in:
mlangkabel
2018-08-28 13:06:36 +02:00
parent 5f80d79540
commit 21d58357f2
4 changed files with 78 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#ifndef UTILITY_WINDOWS_H
#define UTILITY_WINDOWS_H
#ifdef WIN32
namespace utility
{
unsigned long getLargestByteSizeOfAllocatableMemory();
}
#endif // WIN32
#endif // UTILITY_WINDOWS_H