Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6a5d3600
Commit
6a5d3600
authored
Jul 31, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Better heuristic for finding the top of the address space on Linux.
parent
6d4fb08e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mmap.c
libs/wine/mmap.c
+5
-4
No files found.
libs/wine/mmap.c
View file @
6a5d3600
...
...
@@ -338,15 +338,16 @@ void mmap_init(void)
if
(
stack_ptr
>=
user_space_limit
)
{
char
*
end
=
0
;
char
*
base
=
stack_ptr
-
((
unsigned
int
)
stack_ptr
&
granularity_mask
)
-
(
granularity_mask
+
1
);
if
(
base
>
user_space_limit
)
reserve_area
(
user_space_limit
,
base
);
base
=
stack_ptr
-
((
unsigned
int
)
stack_ptr
&
granularity_mask
)
+
(
granularity_mask
+
1
);
#ifdef linux
/* Linux heuristic:
if the stack top is at c0000000, assume the address space
*/
/*
ends ther
e, this avoids a lot of futile allocation attempts */
if
(
base
!=
(
char
*
)
0xc0000000
)
/* Linux heuristic:
assume the stack is near the end of the address
*/
/*
spac
e, this avoids a lot of futile allocation attempts */
end
=
(
char
*
)(((
unsigned
long
)
base
+
0x0fffffff
)
&
0xf0000000
);
#endif
reserve_area
(
base
,
0
);
reserve_area
(
base
,
end
);
}
else
reserve_area
(
user_space_limit
,
0
);
#endif
/* __i386__ */
...
...
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