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:
@@ -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
|
||||
Reference in New Issue
Block a user