diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32heap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/w32heap.c b/src/w32heap.c index 6643b439a26..3e628d54c42 100644 --- a/src/w32heap.c +++ b/src/w32heap.c | |||
| @@ -129,18 +129,18 @@ static DWORD_PTR committed = 0; | |||
| 129 | /* The maximum block size that can be handled by a non-growable w32 | 129 | /* The maximum block size that can be handled by a non-growable w32 |
| 130 | heap is limited by the MaxBlockSize value below. | 130 | heap is limited by the MaxBlockSize value below. |
| 131 | 131 | ||
| 132 | This point deserves and explanation. | 132 | This point deserves an explanation. |
| 133 | 133 | ||
| 134 | The W32 heap allocator can be used for a growable | 134 | The W32 heap allocator can be used for a growable heap or a |
| 135 | heap or a non-growable one. | 135 | non-growable one. |
| 136 | 136 | ||
| 137 | A growable heap is not compatible with a fixed base address for the | 137 | A growable heap is not compatible with a fixed base address for the |
| 138 | heap. Only a non-growable one is. One drawback of non-growable | 138 | heap. Only a non-growable one is. One drawback of non-growable |
| 139 | heaps is that they can hold only objects smaller than a certain | 139 | heaps is that they can hold only objects smaller than a certain |
| 140 | size (the one defined below). Most of the largest blocks are GC'ed | 140 | size (the one defined below). Most of the larger blocks are GC'ed |
| 141 | before dumping. In any case and to be safe, we implement a simple | 141 | before dumping. In any case, and to be safe, we implement a simple |
| 142 | first-fit allocation algorithm starting at the end of the | 142 | first-fit allocation algorithm starting at the end of the |
| 143 | dumped_data[] array like depicted below: | 143 | dumped_data[] array as depicted below: |
| 144 | 144 | ||
| 145 | ---------------------------------------------- | 145 | ---------------------------------------------- |
| 146 | | | | | | 146 | | | | | |
| @@ -273,7 +273,7 @@ init_heap (void) | |||
| 273 | else | 273 | else |
| 274 | { | 274 | { |
| 275 | /* Find the RtlCreateHeap function. Headers for this function | 275 | /* Find the RtlCreateHeap function. Headers for this function |
| 276 | are provided with the w32 ddk, but the function is available | 276 | are provided with the w32 DDK, but the function is available |
| 277 | in ntdll.dll since XP. */ | 277 | in ntdll.dll since XP. */ |
| 278 | HMODULE hm_ntdll = LoadLibrary ("ntdll.dll"); | 278 | HMODULE hm_ntdll = LoadLibrary ("ntdll.dll"); |
| 279 | RtlCreateHeap_Proc s_pfn_Rtl_Create_Heap | 279 | RtlCreateHeap_Proc s_pfn_Rtl_Create_Heap |