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
9fd13a1a
Commit
9fd13a1a
authored
Nov 26, 2018
by
Michael Müller
Committed by
Alexandre Julliard
Nov 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Do not restrict base address of main thread on 64 bit mac os.
Signed-off-by:
Ken Thomases
<
ken@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
11ab9ff7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
loader.c
libs/wine/loader.c
+4
-0
No files found.
libs/wine/loader.c
View file @
9fd13a1a
...
...
@@ -709,6 +709,7 @@ struct apple_stack_info
* Callback for wine_mmap_enum_reserved_areas to allocate space for
* the secondary thread's stack.
*/
#ifndef _WIN64
static
int
apple_alloc_thread_stack
(
void
*
base
,
size_t
size
,
void
*
arg
)
{
struct
apple_stack_info
*
info
=
arg
;
...
...
@@ -725,6 +726,7 @@ static int apple_alloc_thread_stack( void *base, size_t size, void *arg )
info
->
desired_size
,
PROT_READ
|
PROT_WRITE
,
MAP_FIXED
);
return
(
info
->
stack
!=
(
void
*
)
-
1
);
}
#endif
/***********************************************************************
* apple_create_wine_thread
...
...
@@ -742,6 +744,7 @@ static void apple_create_wine_thread( void *init_func )
if
(
!
pthread_attr_init
(
&
attr
))
{
#ifndef _WIN64
struct
apple_stack_info
info
;
/* Try to put the new thread's stack in the reserved area. If this
...
...
@@ -753,6 +756,7 @@ static void apple_create_wine_thread( void *init_func )
wine_mmap_remove_reserved_area
(
info
.
stack
,
info
.
desired_size
,
0
);
pthread_attr_setstackaddr
(
&
attr
,
(
char
*
)
info
.
stack
+
info
.
desired_size
);
}
#endif
if
(
!
pthread_attr_setdetachstate
(
&
attr
,
PTHREAD_CREATE_JOINABLE
)
&&
!
pthread_create
(
&
thread
,
&
attr
,
init_func
,
NULL
))
...
...
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