mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 1267819: Add a diagnostic assertion. r=froydnj
--HG-- extra : rebase_source : b340fb72636948dcc2fa926599f386ce6ead412f
This commit is contained in:
parent
2dda6971f7
commit
706b08a2a3
@ -57,8 +57,13 @@ nsEventQueue::GetEvent(bool aMayWait, nsIRunnable** aResult,
|
||||
}
|
||||
|
||||
if (aResult) {
|
||||
MOZ_ASSERT(mOffsetHead < EVENTS_PER_PAGE);
|
||||
MOZ_ASSERT_IF(mHead == mTail, mOffsetHead <= mOffsetTail);
|
||||
*aResult = mHead->mEvents[mOffsetHead++];
|
||||
|
||||
MOZ_ASSERT(*aResult);
|
||||
MOZ_ASSERT(mOffsetHead <= EVENTS_PER_PAGE);
|
||||
|
||||
// Check if mHead points to empty Page
|
||||
if (mOffsetHead == EVENTS_PER_PAGE) {
|
||||
Page* dead = mHead;
|
||||
|
Loading…
x
Reference in New Issue
Block a user