mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[NTOS:MM] Do not use atomic operations to set a bit while holding a lock.
Saving your fingers from typing it doesn't make it better code.
This commit is contained in:
parent
f06b58925d
commit
8494688eeb
1 changed files with 1 additions and 1 deletions
|
@ -1734,7 +1734,7 @@ ExpFindAndRemoveTagBigPages(IN PVOID Va,
|
|||
// Set the free bit, and decrement the number of allocations. Finally, release
|
||||
// the lock and return the tag that was located
|
||||
//
|
||||
InterlockedIncrement((PLONG)&Entry->Va);
|
||||
Entry->Va = (PVOID)((ULONG_PTR)Entry->Va | POOL_BIG_TABLE_ENTRY_FREE);
|
||||
|
||||
ExpPoolBigEntriesInUse--;
|
||||
|
||||
|
|
Loading…
Reference in a new issue