Re: [PATCH] tools/memory-model: Document herd7 (internal) representation

From: Jonas Oberhauser
Date: Mon May 27 2024 - 09:17:50 EST




Am 5/24/2024 um 5:37 PM schrieb Andrea Parri:
- While checking the information below using herd7, I've observed some
"strange" behavior with spin_is_locked() (perhaps, unsurprisingly...);
IAC, that's also excluded from this table/submission.

For completeness, the behavior in question:

$ cat T.litmus
C T

{}

P0(spinlock_t *x)
{
int r0;

spin_lock(x);
spin_unlock(x);
r0 = spin_is_locked(x);
}


Since 0 executions are generated, possibly herd things there's a deadlock.

Could be either a problem with the deadlock definition, or do you need to initialize the lock somehow?