public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: wincap: set def_guard_pages to x86_64 value right away
@ 2022-05-13 12:38 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2022-05-13 12:38 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0f4eb70ee76832c7ff162b72cb8e934f450e4497

commit 0f4eb70ee76832c7ff162b72cb8e934f450e4497
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Mon Mar 7 10:35:20 2022 +0100

    Cygwin: wincap: set def_guard_pages to x86_64 value right away
    
    Drop conditional code in wincapc::init.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/wincap.cc | 28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)

diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc
index c153627ab..5c385fba4 100644
--- a/winsup/cygwin/wincap.cc
+++ b/winsup/cygwin/wincap.cc
@@ -19,7 +19,7 @@ details. */
    puzzled that this has never been noticed before... */
 
 wincaps wincap_7 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:1,
+  def_guard_pages:2,
   mmap_storage_high:0x070000000000LL,
   {
     is_server:false,
@@ -51,7 +51,7 @@ wincaps wincap_7 __attribute__((section (".cygwin_dll_common"), shared)) = {
 };
 
 wincaps wincap_8 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x070000000000LL,
   {
     is_server:false,
@@ -83,7 +83,7 @@ wincaps wincap_8 __attribute__((section (".cygwin_dll_common"), shared)) = {
 };
 
 wincaps wincap_8_1 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x700000000000LL,
   {
     is_server:false,
@@ -115,7 +115,7 @@ wincaps wincap_8_1 __attribute__((section (".cygwin_dll_common"), shared)) = {
 };
 
 wincaps  wincap_10_1507 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x700000000000LL,
   {
     is_server:false,
@@ -147,7 +147,7 @@ wincaps  wincap_10_1507 __attribute__((section (".cygwin_dll_common"), shared))
 };
 
 wincaps  wincap_10_1607 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x700000000000LL,
   {
     is_server:false,
@@ -179,7 +179,7 @@ wincaps  wincap_10_1607 __attribute__((section (".cygwin_dll_common"), shared))
 };
 
 wincaps wincap_10_1703 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x700000000000LL,
   {
     is_server:false,
@@ -211,7 +211,7 @@ wincaps wincap_10_1703 __attribute__((section (".cygwin_dll_common"), shared)) =
 };
 
 wincaps wincap_10_1709 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x700000000000LL,
   {
     is_server:false,
@@ -243,7 +243,7 @@ wincaps wincap_10_1709 __attribute__((section (".cygwin_dll_common"), shared)) =
 };
 
 wincaps wincap_10_1803 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x700000000000LL,
   {
     is_server:false,
@@ -275,7 +275,7 @@ wincaps wincap_10_1803 __attribute__((section (".cygwin_dll_common"), shared)) =
 };
 
 wincaps wincap_10_1809 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x700000000000LL,
   {
     is_server:false,
@@ -307,7 +307,7 @@ wincaps wincap_10_1809 __attribute__((section (".cygwin_dll_common"), shared)) =
 };
 
 wincaps wincap_10_1903 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x700000000000LL,
   {
     is_server:false,
@@ -339,7 +339,7 @@ wincaps wincap_10_1903 __attribute__((section (".cygwin_dll_common"), shared)) =
 };
 
 wincaps wincap_10_2004 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x700000000000LL,
   {
     is_server:false,
@@ -371,7 +371,7 @@ wincaps wincap_10_2004 __attribute__((section (".cygwin_dll_common"), shared)) =
 };
 
 wincaps wincap_11 __attribute__((section (".cygwin_dll_common"), shared)) = {
-  def_guard_pages:2,
+  def_guard_pages:3,
   mmap_storage_high:0x700000000000LL,
   {
     is_server:false,
@@ -460,10 +460,6 @@ wincapc::init ()
     }
 
   ((wincaps *)caps)->is_server = (version.wProductType != VER_NT_WORKSTATION);
-#ifdef __x86_64__
-  /* 64 bit systems have one more guard page than their 32 bit counterpart. */
-  ++((wincaps *)caps)->def_guard_pages;
-#endif
     {
       ((wincaps *)caps)->has_gaa_largeaddress_bug = false;
       ((wincaps *)caps)->has_broken_prefetchvm = false;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-13 12:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 12:38 [newlib-cygwin] Cygwin: wincap: set def_guard_pages to x86_64 value right away Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).