(init_cheap): Ditto for declaration. * fork.cc (fork_parent): Use user_heap element in cygheap. * heap.h (inheap): Ditto. * heap.cc (sbrk): Ditto. (heap_init): Ditto. Reorganize to shrink heap chunk as required and record new value in cygheap. * dcrt0.cc (dll_crt0_1): More "move the cygthread init" games. * shared.cc (open_shared): Rework memory protection to properly deal with relocated shared segment. (shared_info::heap_chunk_size): Rename element to 'heap_chunk'. * shared_info.h (shared_info): Ditto for declaration. * strace.cc (strace::hello): Report on heap chunk size from cygheap since it may shrink.
		
			
				
	
	
		
			21 lines
		
	
	
		
			515 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			515 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* heap.h: Cygwin heap manager definitions.
 | 
						|
 | 
						|
   Copyright 2000, 2001 Red Hat, Inc.
 | 
						|
 | 
						|
This file is part of Cygwin.
 | 
						|
 | 
						|
This software is a copyrighted work licensed under the terms of the
 | 
						|
Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
 | 
						|
details. */
 | 
						|
 | 
						|
#include "perprocess.h"
 | 
						|
 | 
						|
/* Heap management. */
 | 
						|
void heap_init ();
 | 
						|
void malloc_init ();
 | 
						|
 | 
						|
#define inheap(s) \
 | 
						|
  (cygheap->user_heap.ptr && s \
 | 
						|
   && ((char *) (s) >= (char *) cygheap->user_heap.base) \
 | 
						|
   && ((char *) (s) <= (char *) cygheap->user_heap.top))
 |