Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f00da96a
Commit
f00da96a
authored
May 01, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
May 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Move the main subheap after the free lists.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
523da915
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
heap.c
dlls/ntdll/heap.c
+2
-4
No files found.
dlls/ntdll/heap.c
View file @
f00da96a
...
...
@@ -186,7 +186,6 @@ typedef struct tagHEAP
/* end of the Windows 10 compatible struct layout */
BOOL
shared
;
/* System shared heap */
SUBHEAP
subheap
;
/* First sub-heap */
struct
list
entry
;
/* Entry in process heap list */
struct
list
subheap_list
;
/* Sub-heap list */
struct
list
large_list
;
/* Large blocks list */
...
...
@@ -195,7 +194,8 @@ typedef struct tagHEAP
DWORD
pending_pos
;
/* Position in pending free requests ring */
ARENA_INUSE
**
pending_free
;
/* Ring buffer for pending free requests */
RTL_CRITICAL_SECTION
cs
;
FREE_LIST_ENTRY
*
freeList
;
/* Free lists */
FREE_LIST_ENTRY
freeList
[
HEAP_NB_FREE_LISTS
];
SUBHEAP
subheap
;
}
HEAP
;
#define HEAP_MAGIC ((DWORD)('H' | ('E'<<8) | ('A'<<16) | ('P'<<24)))
...
...
@@ -1008,8 +1008,6 @@ static SUBHEAP *HEAP_CreateSubHeap( HEAP *heap, LPVOID address, DWORD flags,
/* Build the free lists */
heap
->
freeList
=
(
FREE_LIST_ENTRY
*
)((
char
*
)
heap
+
subheap
->
headerSize
);
subheap
->
headerSize
+=
HEAP_NB_FREE_LISTS
*
sizeof
(
FREE_LIST_ENTRY
);
list_init
(
&
heap
->
freeList
[
0
].
arena
.
entry
);
for
(
i
=
0
,
pEntry
=
heap
->
freeList
;
i
<
HEAP_NB_FREE_LISTS
;
i
++
,
pEntry
++
)
{
...
...
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