mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
ntdll: Disable debug flags when running on Valgrind.
The extra debug checks cause more harm than good under Valgrind.
This commit is contained in:
parent
2a07163901
commit
a75ae7936e
@ -1406,6 +1406,8 @@ void heap_set_debug_flags( HANDLE handle )
|
||||
flags |= HEAP_VALIDATE | HEAP_VALIDATE_ALL |
|
||||
HEAP_TAIL_CHECKING_ENABLED | HEAP_FREE_CHECKING_ENABLED;
|
||||
|
||||
if (RUNNING_ON_VALGRIND) flags = 0; /* no sense in validating since Valgrind catches accesses */
|
||||
|
||||
heap->flags |= flags;
|
||||
heap->force_flags |= flags & ~(HEAP_VALIDATE | HEAP_DISABLE_COALESCE_ON_FREE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user