NetBSD/src hV5OPvw — lib/libpthread pthread_rwlock.c
_DIAGASSERT that RW_FLAGMASK bits are not set in a thread pointer. rwlock uses lower bits of a thread pointer for flags in the lock owner field. Assert that the pointer is properly aligned and those bits are actually free to use. This may not be the case when a program uses its own allocator that can return less aligned pointers.
Version | Delta | File | |
---|---|---|---|
1.35 | +6 | -2 | lib/libpthread/pthread_rwlock.c |
+6 | -2 | 1 files |