Author: hbelusca
Date: Tue Jan 31 23:02:16 2017
New Revision: 73653
URL:
http://svn.reactos.org/svn/reactos?rev=73653&view=rev
Log:
[FREELDR]: HACK: Manually reduce the size of the temporary heap from 32MB down to 10MB,
because, in some situations (e.g. Bochs, or real HW, see CORE-12694), FreeLDR fails when
creating the temporary heap with an "out of memory" error. First investigations
seem to show that it's because FreeLDR cannot find a contiguous memory area of such
size...
More investigations are in order.
I strongly think that this heap size should not be hardcoded, but instead computed, taking
into account for the memory availability on a given system.
Modified:
branches/ReactOS-0.4.4-FOSDEM2017/reactos/boot/freeldr/freeldr/include/mm.h
Modified: branches/ReactOS-0.4.4-FOSDEM2017/reactos/boot/freeldr/freeldr/include/mm.h
URL:
http://svn.reactos.org/svn/reactos/branches/ReactOS-0.4.4-FOSDEM2017/reacto…
==============================================================================
---
branches/ReactOS-0.4.4-FOSDEM2017/reactos/boot/freeldr/freeldr/include/mm.h [iso-8859-1]
(original)
+++
branches/ReactOS-0.4.4-FOSDEM2017/reactos/boot/freeldr/freeldr/include/mm.h [iso-8859-1]
Tue Jan 31 23:02:16 2017
@@ -121,7 +121,7 @@
/* Heap */
#define DEFAULT_HEAP_SIZE (1024 * 1024)
-#define TEMP_HEAP_SIZE (32 * 1024 * 1024)
+#define TEMP_HEAP_SIZE (10 * 1024 * 1024)
extern PVOID FrLdrDefaultHeap;
extern PVOID FrLdrTempHeap;