blob: c7c56d5814ee09c2b52850e295afe68087f2dc4c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Index: src/VBox/Runtime/r0drv/freebsd/spinlock-r0drv-freebsd.c
@@ -171,7 +171,12 @@ RTDECL(void) RTSpinlockAcquire(RTSPINLOC
AssertPtr(pThis);
Assert(pThis->u32Magic == RTSPINLOCK_MAGIC);
#ifdef RT_STRICT
+#if 0
+ /* This can't work because at least RTPowerNotificationRegister calls
+ * RTSpinlockAcquire with *pTmp allocated on the stack.
+ */
Assert(pTmp->uFlags == 0);
+#endif
pTmp->uFlags = 42;
#endif
|