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:
authorChristopher Faylor <me@cgf.cx>2002-10-22 20:18:55 +0400
committerChristopher Faylor <me@cgf.cx>2002-10-22 20:18:55 +0400
commit1cc651ecafae07b9ed6edff9952e2b31f0503d0a (patch)
tree682ab1ca541b857ae9440cec58d23fd61575d35a /winsup/cygwin/cygheap.h
parent5ec14fe40ae1a6b11d27b975feca1b20de435467 (diff)
* cygheap.cc (cygheap_fixup_in_child): Use user_heap element in cygheap.
(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.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r--winsup/cygwin/cygheap.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h
index fd784ae95..703c1d1dc 100644
--- a/winsup/cygwin/cygheap.h
+++ b/winsup/cygwin/cygheap.h
@@ -198,18 +198,21 @@ struct cygheap_debug
};
#endif
+struct user_heap_info
+{
+ void *base;
+ void *ptr;
+ void *top;
+ unsigned chunk;
+};
+
struct init_cygheap
{
_cmalloc_entry *chain;
char *buckets[32];
- struct /* User heap stuff. */
- {
- void *heapbase;
- void *heapptr;
- void *heaptop;
- };
cygheap_root root;
cygheap_user user;
+ user_heap_info user_heap;
mode_t umask;
HANDLE shared_h;
HANDLE console_h;