diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-05-16 14:27:14 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-05-16 14:27:14 +0400 |
commit | 883ea27df0f7d9a5836feb493c35026381c55b2b (patch) | |
tree | 4052ab3e6d3e898136015d7d71200ec685666b32 /winsup/cygwin/shared.cc | |
parent | 6d6cfa4840b66c2dc152e7eab915a8ac9c10ef71 (diff) |
* heap.cc (heap_init): Rewrite initial heap allocation to use addresses
beyond 0x20000000. Explain why and how.
* shared.cc (shared_info::heap_slop_size): Remove.
* shared_info.h (class shared_info): Remove heap_slop_inited and
heap_slop members. Remove heap_slop_size declaration.
(CURR_SHARED_MAGIC): Update.
* wincap.cc: Throughout, drop heapslop.
* wincap.h (struct wincaps): Drop heapslop.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r-- | winsup/cygwin/shared.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index 60173cda6..0bfd4be8d 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -441,27 +441,6 @@ memory_init (bool init_cygheap) } unsigned -shared_info::heap_slop_size () -{ - if (!heap_slop_inited) - { - /* Fetch from registry, first user then local machine. */ - for (int i = 0; i < 2; i++) - { - reg_key reg (i, KEY_READ, NULL); - - if ((heap_slop = reg.get_dword (L"heap_slop_in_mb", 0))) - break; - heap_slop = wincap.heapslop (); - } - heap_slop <<= 20; - heap_slop_inited = true; - } - - return heap_slop; -} - -unsigned shared_info::heap_chunk_size () { if (!heap_chunk) |