diff options
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/w32heap.c | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f0ea2885b8c..d099ca757bf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -3,6 +3,8 @@ | |||
| 3 | * w32heap.c (DUMPED_HEAP_SIZE): Move from w32heap.h. Don't use | 3 | * w32heap.c (DUMPED_HEAP_SIZE): Move from w32heap.h. Don't use |
| 4 | HEAPSIZE; instead, define separate values for the 32- and 64-bit | 4 | HEAPSIZE; instead, define separate values for the 32- and 64-bit |
| 5 | builds. | 5 | builds. |
| 6 | (calloc): Don't undef, it is never defined. | ||
| 7 | (HEAP_ENTRY_SHIFT): Remove unused macro. | ||
| 6 | 8 | ||
| 7 | * Makefile.in (C_HEAP_SWITCH): Remove. | 9 | * Makefile.in (C_HEAP_SWITCH): Remove. |
| 8 | (ALL_CFLAGS): Don't use $(C_HEAP_SWITCH). | 10 | (ALL_CFLAGS): Don't use $(C_HEAP_SWITCH). |
diff --git a/src/w32heap.c b/src/w32heap.c index f08e1078b0a..e6ca432a5ef 100644 --- a/src/w32heap.c +++ b/src/w32heap.c | |||
| @@ -122,9 +122,7 @@ typedef struct _RTL_HEAP_PARAMETERS { | |||
| 122 | 122 | ||
| 123 | static unsigned char dumped_data[DUMPED_HEAP_SIZE]; | 123 | static unsigned char dumped_data[DUMPED_HEAP_SIZE]; |
| 124 | 124 | ||
| 125 | /* Info for managing our preload heap, which is essentially a fixed size | 125 | /* Info for keeping track of our dynamic heap used after dumping. */ |
| 126 | data area in the executable. */ | ||
| 127 | /* Info for keeping track of our heap. */ | ||
| 128 | unsigned char *data_region_base = NULL; | 126 | unsigned char *data_region_base = NULL; |
| 129 | unsigned char *data_region_end = NULL; | 127 | unsigned char *data_region_end = NULL; |
| 130 | static DWORD_PTR committed = 0; | 128 | static DWORD_PTR committed = 0; |
| @@ -155,7 +153,9 @@ static DWORD_PTR committed = 0; | |||
| 155 | + committed | 153 | + committed |
| 156 | 154 | ||
| 157 | */ | 155 | */ |
| 158 | #define HEAP_ENTRY_SHIFT 3 | 156 | |
| 157 | /* Info for managing our preload heap, which is essentially a fixed size | ||
| 158 | data area in the executable. */ | ||
| 159 | #define PAGE_SIZE 0x1000 | 159 | #define PAGE_SIZE 0x1000 |
| 160 | #define MaxBlockSize (0x80000 - PAGE_SIZE) | 160 | #define MaxBlockSize (0x80000 - PAGE_SIZE) |
| 161 | 161 | ||
| @@ -296,7 +296,6 @@ init_heap (void) | |||
| 296 | 296 | ||
| 297 | #undef malloc | 297 | #undef malloc |
| 298 | #undef realloc | 298 | #undef realloc |
| 299 | #undef calloc | ||
| 300 | #undef free | 299 | #undef free |
| 301 | 300 | ||
| 302 | /* FREEABLE_P checks if the block can be safely freed. */ | 301 | /* FREEABLE_P checks if the block can be safely freed. */ |