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
27e70ba8
Commit
27e70ba8
authored
Feb 21, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Feb 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Force debug info in critical sections.
parent
7c2f6be1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
heap.c
dlls/ntdll/heap.c
+1
-1
rtl.c
dlls/ntdll/rtl.c
+1
-1
threadpool.c
dlls/ntdll/threadpool.c
+2
-2
No files found.
dlls/ntdll/heap.c
View file @
27e70ba8
...
...
@@ -1548,7 +1548,7 @@ HANDLE WINAPI RtlCreateHeap( ULONG flags, void *addr, SIZE_T total_size, SIZE_T
}
else
{
RtlInitializeCriticalSection
(
&
heap
->
cs
);
RtlInitializeCriticalSection
Ex
(
&
heap
->
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
heap
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": heap.cs"
);
}
...
...
dlls/ntdll/rtl.c
View file @
27e70ba8
...
...
@@ -120,7 +120,7 @@ void WINAPI RtlInitializeResource(LPRTL_RWLOCK rwl)
rwl
->
uSharedWaiters
=
0
;
rwl
->
hOwningThreadId
=
0
;
rwl
->
dwTimeoutBoost
=
0
;
/* no info on this one, default value is 0 */
RtlInitializeCriticalSection
(
&
rwl
->
rtlCS
);
RtlInitializeCriticalSection
Ex
(
&
rwl
->
rtlCS
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
rwl
->
rtlCS
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": RTL_RWLOCK.rtlCS"
);
NtCreateSemaphore
(
&
rwl
->
hExclusiveReleaseSemaphore
,
SEMAPHORE_ALL_ACCESS
,
NULL
,
0
,
65535
);
NtCreateSemaphore
(
&
rwl
->
hSharedReleaseSemaphore
,
SEMAPHORE_ALL_ACCESS
,
NULL
,
0
,
65535
);
...
...
dlls/ntdll/threadpool.c
View file @
27e70ba8
...
...
@@ -1675,7 +1675,7 @@ static NTSTATUS tp_threadpool_alloc( struct threadpool **out )
pool
->
objcount
=
0
;
pool
->
shutdown
=
FALSE
;
RtlInitializeCriticalSection
(
&
pool
->
cs
);
RtlInitializeCriticalSection
Ex
(
&
pool
->
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
pool
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": threadpool.cs"
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
pool
->
pools
);
++
i
)
...
...
@@ -1839,7 +1839,7 @@ static NTSTATUS tp_group_alloc( struct threadpool_group **out )
group
->
refcount
=
1
;
group
->
shutdown
=
FALSE
;
RtlInitializeCriticalSection
(
&
group
->
cs
);
RtlInitializeCriticalSection
Ex
(
&
group
->
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
group
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": threadpool_group.cs"
);
list_init
(
&
group
->
members
);
...
...
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