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
aaf9a151
Commit
aaf9a151
authored
Mar 10, 2007
by
Jan Zerebecki
Committed by
Alexandre Julliard
Mar 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add DebugInfo to critical sections.
parent
3b32ae2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
heap.c
dlls/ntdll/heap.c
+6
-1
rtl.c
dlls/ntdll/rtl.c
+2
-0
No files found.
dlls/ntdll/heap.c
View file @
aaf9a151
...
@@ -653,7 +653,11 @@ static BOOL HEAP_InitSubHeap( HEAP *heap, LPVOID address, DWORD flags,
...
@@ -653,7 +653,11 @@ static BOOL HEAP_InitSubHeap( HEAP *heap, LPVOID address, DWORD flags,
heap
->
critSection
.
SpinCount
=
0
;
heap
->
critSection
.
SpinCount
=
0
;
process_heap_critsect_debug
.
CriticalSection
=
&
heap
->
critSection
;
process_heap_critsect_debug
.
CriticalSection
=
&
heap
->
critSection
;
}
}
else
RtlInitializeCriticalSection
(
&
heap
->
critSection
);
else
{
RtlInitializeCriticalSection
(
&
heap
->
critSection
);
heap
->
critSection
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": HEAP.critSection"
);
}
if
(
flags
&
HEAP_SHARED
)
if
(
flags
&
HEAP_SHARED
)
{
{
...
@@ -1128,6 +1132,7 @@ HANDLE WINAPI RtlDestroyHeap( HANDLE heap )
...
@@ -1128,6 +1132,7 @@ HANDLE WINAPI RtlDestroyHeap( HANDLE heap )
list_remove
(
&
heapPtr
->
entry
);
list_remove
(
&
heapPtr
->
entry
);
RtlLeaveCriticalSection
(
&
processHeap
->
critSection
);
RtlLeaveCriticalSection
(
&
processHeap
->
critSection
);
heapPtr
->
critSection
.
DebugInfo
->
Spare
[
0
]
=
0
;
RtlDeleteCriticalSection
(
&
heapPtr
->
critSection
);
RtlDeleteCriticalSection
(
&
heapPtr
->
critSection
);
subheap
=
&
heapPtr
->
subheap
;
subheap
=
&
heapPtr
->
subheap
;
while
(
subheap
)
while
(
subheap
)
...
...
dlls/ntdll/rtl.c
View file @
aaf9a151
...
@@ -118,6 +118,7 @@ void WINAPI RtlInitializeResource(LPRTL_RWLOCK rwl)
...
@@ -118,6 +118,7 @@ void WINAPI RtlInitializeResource(LPRTL_RWLOCK rwl)
rwl
->
hOwningThreadId
=
0
;
rwl
->
hOwningThreadId
=
0
;
rwl
->
dwTimeoutBoost
=
0
;
/* no info on this one, default value is 0 */
rwl
->
dwTimeoutBoost
=
0
;
/* no info on this one, default value is 0 */
RtlInitializeCriticalSection
(
&
rwl
->
rtlCS
);
RtlInitializeCriticalSection
(
&
rwl
->
rtlCS
);
rwl
->
rtlCS
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": RTL_RWLOCK.rtlCS"
);
NtCreateSemaphore
(
&
rwl
->
hExclusiveReleaseSemaphore
,
SEMAPHORE_ALL_ACCESS
,
NULL
,
0
,
65535
);
NtCreateSemaphore
(
&
rwl
->
hExclusiveReleaseSemaphore
,
SEMAPHORE_ALL_ACCESS
,
NULL
,
0
,
65535
);
NtCreateSemaphore
(
&
rwl
->
hSharedReleaseSemaphore
,
SEMAPHORE_ALL_ACCESS
,
NULL
,
0
,
65535
);
NtCreateSemaphore
(
&
rwl
->
hSharedReleaseSemaphore
,
SEMAPHORE_ALL_ACCESS
,
NULL
,
0
,
65535
);
}
}
...
@@ -140,6 +141,7 @@ void WINAPI RtlDeleteResource(LPRTL_RWLOCK rwl)
...
@@ -140,6 +141,7 @@ void WINAPI RtlDeleteResource(LPRTL_RWLOCK rwl)
NtClose
(
rwl
->
hExclusiveReleaseSemaphore
);
NtClose
(
rwl
->
hExclusiveReleaseSemaphore
);
NtClose
(
rwl
->
hSharedReleaseSemaphore
);
NtClose
(
rwl
->
hSharedReleaseSemaphore
);
RtlLeaveCriticalSection
(
&
rwl
->
rtlCS
);
RtlLeaveCriticalSection
(
&
rwl
->
rtlCS
);
rwl
->
rtlCS
.
DebugInfo
->
Spare
[
0
]
=
0
;
RtlDeleteCriticalSection
(
&
rwl
->
rtlCS
);
RtlDeleteCriticalSection
(
&
rwl
->
rtlCS
);
}
}
}
}
...
...
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