VirtualBox

Changeset 36261 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Mar 11, 2011 2:27:35 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70525
Message:

Runtime/r0drv/solaris/semeventwait: Assert that PIL should not be lowered across timeout_generic calls while we hold the spinlock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/semeventwait-r0drv-solaris.h

    r33736 r36261  
    265265                 * for waking up the thread at the desired time.
    266266                 */
     267                int OldPrioLevel = getpil();
    267268                u.idCo = g_pfnrtR0Sol_timeout_generic(CALLOUT_REALTIME, rtR0SemSolWaitTimeout, pWait,
    268269                                                      pWait->uNsAbsTimeout, RTR0SEMSOLWAIT_RESOLUTION,
    269270                                                      CALLOUT_FLAG_ABSOLUTE);
     271                int NewPrioLevel = getpil();
     272                AssertReleaseMsg(NewPrioLevel >= OldPrioLevel, ("Unexpected lowering of PIL (Old=%d New=%d)\n", OldPrioLevel, NewPrioLevel));
    270273            }
    271274#if 0 /* @bugref{5342} */
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