aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-01-18 20:07:54 +0100
committerCorinna Vinschen <corinna@vinschen.de>2023-01-18 20:13:38 +0100
commit3c2ac163da888cf69d855c9becf643dbc6ebd94f (patch)
tree2a56ad92f54d8493dae11f0d8b6e1f1dc8c7d87b
parente1fcd10b48775a92b3fe7b13d2c702fab48dfff8 (diff)
downloadnewlib-3c2ac163da888cf69d855c9becf643dbc6ebd94f.zip
newlib-3c2ac163da888cf69d855c9becf643dbc6ebd94f.tar.gz
newlib-3c2ac163da888cf69d855c9becf643dbc6ebd94f.tar.bz2
Cygwin: fix two comments in heap.cc and memory_layout.h
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/local_includes/memory_layout.h3
-rw-r--r--winsup/cygwin/mm/heap.cc4
2 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/local_includes/memory_layout.h b/winsup/cygwin/local_includes/memory_layout.h
index c763442..f8ec80b 100644
--- a/winsup/cygwin/local_includes/memory_layout.h
+++ b/winsup/cygwin/local_includes/memory_layout.h
@@ -16,8 +16,7 @@ details. */
dynamicbase is accidentally not set in the PE/COFF header of the DLL. */
#define CYGWIN_DLL_ADDRESS 0x180040000UL
-/* Area for non-fixed-address Cygwin-specific shared memory regions. Fallback
- for standard shared regions if the can't load at their default address. */
+/* Area for Cygwin-specific shared memory regions. */
#define SHARED_REGIONS_ADDRESS_LOW 0x1a0000000UL
#define SHARED_REGIONS_ADDRESS_HIGH 0x200000000UL
diff --git a/winsup/cygwin/mm/heap.cc b/winsup/cygwin/mm/heap.cc
index 5b24a19..72ea486 100644
--- a/winsup/cygwin/mm/heap.cc
+++ b/winsup/cygwin/mm/heap.cc
@@ -77,11 +77,11 @@ user_heap_info::init ()
if (base)
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
region which matches our desired heap size. While doing that,
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,
sizeof mbi)) != 0)
{