Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Fix GetMonitorHeldState()
Browse files Browse the repository at this point in the history
  • Loading branch information
kouvel committed Oct 5, 2017
1 parent 9311ddf commit 8c2268b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/syncblk.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class AwareLock
// bit 0: 1 if locked, 0 otherwise
// bits 1-31: waiter count
UINT32 state = m_state;
return (state & IsLockedMask) + (state >> (WaiterCountShift - 1));
return (state & IsLockedMask) + (state >> WaiterCountShift << 1);
}

public:
Expand Down

0 comments on commit 8c2268b

Please sign in to comment.