Cygwin: fix two comments in heap.cc and memory_layout.h
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
e1fcd10b48
commit
3c2ac163da
|
@ -16,8 +16,7 @@ details. */
|
||||||
dynamicbase is accidentally not set in the PE/COFF header of the DLL. */
|
dynamicbase is accidentally not set in the PE/COFF header of the DLL. */
|
||||||
#define CYGWIN_DLL_ADDRESS 0x180040000UL
|
#define CYGWIN_DLL_ADDRESS 0x180040000UL
|
||||||
|
|
||||||
/* Area for non-fixed-address Cygwin-specific shared memory regions. Fallback
|
/* Area for Cygwin-specific shared memory regions. */
|
||||||
for standard shared regions if the can't load at their default address. */
|
|
||||||
#define SHARED_REGIONS_ADDRESS_LOW 0x1a0000000UL
|
#define SHARED_REGIONS_ADDRESS_LOW 0x1a0000000UL
|
||||||
#define SHARED_REGIONS_ADDRESS_HIGH 0x200000000UL
|
#define SHARED_REGIONS_ADDRESS_HIGH 0x200000000UL
|
||||||
|
|
||||||
|
|
|
@ -77,11 +77,11 @@ user_heap_info::init ()
|
||||||
if (base)
|
if (base)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Ok, so we are at the 1% which didn't work with 0x20000000 out
|
/* Ok, so we are at the 1% which didn't work with USERHEAP_START out
|
||||||
of the box. What we do now is to search for the next free
|
of the box. What we do now is to search for the next free
|
||||||
region which matches our desired heap size. While doing that,
|
region which matches our desired heap size. While doing that,
|
||||||
we keep track of the largest region we found, including the
|
we keep track of the largest region we found, including the
|
||||||
region starting at 0x20000000. */
|
region starting at USERHEAP_START. */
|
||||||
while ((ret = VirtualQuery ((LPCVOID) start_address, &mbi,
|
while ((ret = VirtualQuery ((LPCVOID) start_address, &mbi,
|
||||||
sizeof mbi)) != 0)
|
sizeof mbi)) != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue