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
b44fb883
Commit
b44fb883
authored
May 07, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
May 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Check that creating huge thread stacks works.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6f9562db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
virtual.c
dlls/ntdll/tests/virtual.c
+13
-0
No files found.
dlls/ntdll/tests/virtual.c
View file @
b44fb883
...
...
@@ -488,6 +488,11 @@ static DWORD WINAPI test_stack_size_thread(void *ptr)
ExitThread
(
0
);
}
static
DWORD
WINAPI
test_stack_size_dummy_thread
(
void
*
ptr
)
{
return
0
;
}
static
void
test_RtlCreateUserStack
(
void
)
{
IMAGE_NT_HEADERS
*
nt
=
RtlImageNtHeader
(
NtCurrentTeb
()
->
Peb
->
ImageBaseAddress
);
...
...
@@ -565,6 +570,14 @@ static void test_RtlCreateUserStack(void)
WaitForSingleObject
(
thread
,
INFINITE
);
CloseHandle
(
thread
);
if
(
is_win64
)
{
thread
=
CreateThread
(
NULL
,
0x80000000
,
test_stack_size_dummy_thread
,
NULL
,
STACK_SIZE_PARAM_IS_A_RESERVATION
,
NULL
);
ok
(
thread
!=
NULL
,
"CreateThread with huge stack failed
\n
"
);
WaitForSingleObject
(
thread
,
INFINITE
);
CloseHandle
(
thread
);
}
args
.
expect_committed
=
default_commit
<
0x2000
?
0x2000
:
default_commit
;
args
.
expect_reserved
=
0x100000
;
for
(
i
=
0
;
i
<
32
;
i
++
)
...
...
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