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
156ba4ed
Commit
156ba4ed
authored
Dec 16, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Avoid putting the virtual heap in the low 2Gb on 64-bit.
parent
ea8ee88f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
virtual.c
dlls/ntdll/virtual.c
+2
-0
No files found.
dlls/ntdll/virtual.c
View file @
156ba4ed
...
...
@@ -140,6 +140,7 @@ static void *user_space_limit;
static
void
*
working_set_limit
;
static
void
*
address_space_start
=
(
void
*
)
0x10000
;
#endif
/* __i386__ */
static
const
int
is_win64
=
(
sizeof
(
void
*
)
>
sizeof
(
int
));
#define ROUND_ADDR(addr,mask) \
((void *)((UINT_PTR)(addr) & ~(UINT_PTR)(mask)))
...
...
@@ -1357,6 +1358,7 @@ static int alloc_virtual_heap( void *base, size_t size, void *arg )
if
(
is_beyond_limit
(
base
,
size
,
address_space_limit
))
address_space_limit
=
(
char
*
)
base
+
size
;
if
(
size
<
VIRTUAL_HEAP_SIZE
)
return
0
;
if
(
is_win64
&&
base
<
(
void
*
)
0x80000000
)
return
0
;
*
heap_base
=
wine_anon_mmap
(
(
char
*
)
base
+
size
-
VIRTUAL_HEAP_SIZE
,
VIRTUAL_HEAP_SIZE
,
PROT_READ
|
PROT_WRITE
,
MAP_FIXED
);
return
(
*
heap_base
!=
(
void
*
)
-
1
);
...
...
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