diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-10-31 21:41:16 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-10-31 21:41:16 +0300 |
commit | c2b10dc4d83b4bfba357eb6cfc4b7698dc8fef1c (patch) | |
tree | 90de2c2c6336df77e7916882eac81edc70b208ec /winsup/cygwin/wincap.cc | |
parent | 9740f34d11c458fd7a07a025810422a6db1ad374 (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/wincap.cc')
-rw-r--r-- | winsup/cygwin/wincap.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc index 9c82e45a7..df6765b7b 100644 --- a/winsup/cygwin/wincap.cc +++ b/winsup/cygwin/wincap.cc @@ -14,6 +14,7 @@ details. */ static NO_COPY wincaps wincap_unknown = { lock_file_highword:0x0, chunksize:0x0, + heapslop:0x0, shared:FILE_SHARE_READ | FILE_SHARE_WRITE, is_winnt:false, is_server:false, @@ -72,6 +73,7 @@ static NO_COPY wincaps wincap_unknown = { static NO_COPY wincaps wincap_95 = { lock_file_highword:0x0, chunksize:32 * 1024 * 1024, + heapslop:0x0, shared:FILE_SHARE_READ | FILE_SHARE_WRITE, is_winnt:false, is_server:false, @@ -130,6 +132,7 @@ static NO_COPY wincaps wincap_95 = { static NO_COPY wincaps wincap_95osr2 = { lock_file_highword:0x0, chunksize:32 * 1024 * 1024, + heapslop:0x0, shared:FILE_SHARE_READ | FILE_SHARE_WRITE, is_winnt:false, is_server:false, @@ -188,6 +191,7 @@ static NO_COPY wincaps wincap_95osr2 = { static NO_COPY wincaps wincap_98 = { lock_file_highword:0x0, chunksize:32 * 1024 * 1024, + heapslop:0x0, shared:FILE_SHARE_READ | FILE_SHARE_WRITE, is_winnt:false, is_server:false, @@ -246,6 +250,7 @@ static NO_COPY wincaps wincap_98 = { static NO_COPY wincaps wincap_98se = { lock_file_highword:0x0, chunksize:32 * 1024 * 1024, + heapslop:0x0, shared:FILE_SHARE_READ | FILE_SHARE_WRITE, is_winnt:false, is_server:false, @@ -304,6 +309,7 @@ static NO_COPY wincaps wincap_98se = { static NO_COPY wincaps wincap_me = { lock_file_highword:0x0, chunksize:32 * 1024 * 1024, + heapslop:0x0, shared:FILE_SHARE_READ | FILE_SHARE_WRITE, is_winnt:false, is_server:false, @@ -362,6 +368,7 @@ static NO_COPY wincaps wincap_me = { static NO_COPY wincaps wincap_nt3 = { lock_file_highword:UINT32_MAX, chunksize:0, + heapslop:0x0, shared:FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, is_winnt:true, is_server:false, @@ -420,6 +427,7 @@ static NO_COPY wincaps wincap_nt3 = { static NO_COPY wincaps wincap_nt4 = { lock_file_highword:UINT32_MAX, chunksize:0, + heapslop:0x0, shared:FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, is_winnt:true, is_server:false, @@ -478,6 +486,7 @@ static NO_COPY wincaps wincap_nt4 = { static NO_COPY wincaps wincap_nt4sp4 = { lock_file_highword:UINT32_MAX, chunksize:0, + heapslop:0x0, shared:FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, is_winnt:true, is_server:false, @@ -536,6 +545,7 @@ static NO_COPY wincaps wincap_nt4sp4 = { static NO_COPY wincaps wincap_2000 = { lock_file_highword:UINT32_MAX, chunksize:0, + heapslop:0x0, shared:FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, is_winnt:true, is_server:false, @@ -594,6 +604,7 @@ static NO_COPY wincaps wincap_2000 = { static NO_COPY wincaps wincap_xp = { lock_file_highword:UINT32_MAX, chunksize:0, + heapslop:0x0, shared:FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, is_winnt:true, is_server:false, @@ -652,6 +663,7 @@ static NO_COPY wincaps wincap_xp = { static NO_COPY wincaps wincap_2003 = { lock_file_highword:UINT32_MAX, chunksize:0, + heapslop:0x4, shared:FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, is_winnt:true, is_server:true, @@ -710,6 +722,7 @@ static NO_COPY wincaps wincap_2003 = { static NO_COPY wincaps wincap_vista = { lock_file_highword:UINT32_MAX, chunksize:0, + heapslop:0x4, shared:FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, is_winnt:true, is_server:true, |