VirtualBox

Changeset 10827 in vbox


Ignore:
Timestamp:
Jul 23, 2008 11:50:55 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33612
Message:

It's not very clear what this Contention field really means. Seems to be a counter for the number of times contention occurred. (http://winprogger.com/?p=6)
So the assertion is indeed wrong and it triggers very often here and for others.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/nt/semfastmutex-r0drv-nt.cpp

    r10738 r10827  
    9797    ASMAtomicIncU32(&pFastInt->u32Magic);
    9898    Assert(pFastInt->Mutex.Count == 1);
    99     Assert(pFastInt->Mutex.Contention == 0);
     99    /* It's not very clear what this Contention field really means. Seems to be a counter for the number of times contention occurred. (see e.g. http://winprogger.com/?p=6)
     100     * The following assertion is therefor wrong:
     101     * Assert(pFastInt->Mutex.Contention == 0);
     102     */
    100103    RTMemFree(pFastInt);
    101104    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette