Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-10-31 21:41:16 +0300
committerCorinna Vinschen <corinna@vinschen.de>2006-10-31 21:41:16 +0300
commitc2b10dc4d83b4bfba357eb6cfc4b7698dc8fef1c (patch)
tree90de2c2c6336df77e7916882eac81edc70b208ec /winsup/cygwin/shared_info.h
parent9740f34d11c458fd7a07a025810422a6db1ad374 (diff)
* cygheap.h (struct user_heap_info): Add slop member.
* heap.cc (heap_init): Add slop factor to heap allocation. Add comment. * mmap.cc (MapViewNT): Allocate memory maps top down. (fhandler_dev_zero::mmap): Ditto. * shared.cc (shared_info::heap_slop_size): New method. (shared_info::heap_chunk_size): Don't use debug_printf at early stage. * shared_info.h (SHARED_INFO_CB): Accomodate change to shared_info. (CURR_SHARED_MAGIC): Ditto. (class shared_info): Add heap_slop member. Declare heap_slop_size. * wincap.h: Define heapslop throughout. * wincap.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/shared_info.h')
-rw-r--r--winsup/cygwin/shared_info.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/shared_info.h b/winsup/cygwin/shared_info.h
index ff9361605..a1a4be0db 100644
--- a/winsup/cygwin/shared_info.h
+++ b/winsup/cygwin/shared_info.h
@@ -143,9 +143,9 @@ public:
cygwin_version.api_minor)
#define SHARED_VERSION_MAGIC CYGWIN_VERSION_MAGIC (SHARED_MAGIC, SHARED_VERSION)
-#define SHARED_INFO_CB 19984
+#define SHARED_INFO_CB 19988
-#define CURR_SHARED_MAGIC 0x818f75beU
+#define CURR_SHARED_MAGIC 0xb632a4cU
/* NOTE: Do not make gratuitous changes to the names or organization of the
below class. The layout is checksummed to determine compatibility between
@@ -156,11 +156,13 @@ class shared_info
DWORD cb;
public:
unsigned heap_chunk;
+ unsigned heap_slop;
DWORD sys_mount_table_counter;
tty_list tty;
void initialize ();
unsigned heap_chunk_size ();
+ unsigned heap_slop_size ();
};
extern shared_info *cygwin_shared;