Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
50fa7d64
Commit
50fa7d64
authored
Oct 23, 2016
by
Eli Zaretskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
;* src/w32heap.c: Fix typo and wording of the comments.
parent
6f1325ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/w32heap.c
src/w32heap.c
+7
-7
No files found.
src/w32heap.c
View file @
50fa7d64
...
...
@@ -129,18 +129,18 @@ static DWORD_PTR committed = 0;
/* The maximum block size that can be handled by a non-growable w32
heap is limited by the MaxBlockSize value below.
This point deserves an
d
explanation.
This point deserves an explanation.
The W32 heap allocator can be used for a growable
heap or a
non-growable one.
The W32 heap allocator can be used for a growable
heap or a
non-growable one.
A growable heap is not compatible with a fixed base address for the
heap. Only a non-growable one is. One drawback of non-growable
heaps is that they can hold only objects smaller than a certain
size (the one defined below). Most of the large
st
blocks are GC'ed
before dumping. In any case and to be safe, we implement a simple
size (the one defined below). Most of the large
r
blocks are GC'ed
before dumping. In any case
,
and to be safe, we implement a simple
first-fit allocation algorithm starting at the end of the
dumped_data[] array
like
depicted below:
dumped_data[] array
as
depicted below:
----------------------------------------------
| | | |
...
...
@@ -273,7 +273,7 @@ init_heap (void)
else
{
/* Find the RtlCreateHeap function. Headers for this function
are provided with the w32
ddk
, but the function is available
are provided with the w32
DDK
, but the function is available
in ntdll.dll since XP. */
HMODULE
hm_ntdll
=
LoadLibrary
(
"ntdll.dll"
);
RtlCreateHeap_Proc
s_pfn_Rtl_Create_Heap
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment