* fork.cc (fork_child): Move mmap initialization.
* shared.cc (shared_info::heap_chunk_size): Store info as megabytes. Search HKEY_LOCAL_MACHINE as well as HKEY_CURRENT_USER. * shared_info.h (shared_info::initial_heap_size): Change element name to reflect new functionality. * strace.cc (strace::hello): Report on initial heap size.
This commit is contained in:
@@ -138,7 +138,7 @@ public:
|
||||
|
||||
#define SHARED_INFO_CB 47112
|
||||
|
||||
#define CURR_SHARED_MAGIC 0x29eb8ccdU
|
||||
#define CURR_SHARED_MAGIC 0xd9e0bc22U
|
||||
|
||||
/* NOTE: Do not make gratuitous changes to the names or organization of the
|
||||
below class. The layout is checksummed to determine compatibility between
|
||||
@@ -148,7 +148,7 @@ class shared_info
|
||||
DWORD version;
|
||||
DWORD cb;
|
||||
public:
|
||||
int heap_chunk_in_mb;
|
||||
unsigned initial_heap_size;
|
||||
DWORD sys_mount_table_counter;
|
||||
|
||||
tty_list tty;
|
||||
|
Reference in New Issue
Block a user