* 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.
This commit is contained in:
@@ -440,27 +440,6 @@ memory_init (bool init_cygheap)
|
||||
user_info::create (false); /* Initialize per-user shared memory */
|
||||
}
|
||||
|
||||
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 ()
|
||||
{
|
||||
|
Reference in New Issue
Block a user