VirtualBox

Changeset 23718 in vbox for trunk/src/VBox/Runtime/generic


Ignore:
Timestamp:
Oct 13, 2009 12:36:13 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53438
Message:

critsect-generic.cpp: Don't use AssertMsgFailed on nested entry since the logger may end up here if we assert while formatting the message for a previous assertion (happens when you get a format type wrong).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/critsect-generic.cpp

    r21533 r23718  
    315315                return VINF_SUCCESS;
    316316            }
    317             else
    318             {
    319                 AssertMsgFailed(("Nested entry of critsect %p\n", pCritSect));
    320                 ASMAtomicDecS32(&pCritSect->cLockers);
    321                 return VERR_SEM_NESTED;
    322             }
     317
     318            AssertBreakpoint(); /* don't do normal assertion here, the logger uses this code too. */
     319            ASMAtomicDecS32(&pCritSect->cLockers);
     320            return VERR_SEM_NESTED;
    323321        }
    324322
Note: See TracChangeset for help on using the changeset viewer.

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