mirror of
https://github.com/reactos/reactos.git
synced 2026-06-03 01:41:13 +08: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:
committed by
Jérôme Gardou
parent
f06b58925d
commit
8494688eeb
@@ -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--;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user