diff --git a/regressions/ck_bytelock/validate/validate.c b/regressions/ck_bytelock/validate/validate.c index dab6d6f..34d7bed 100644 --- a/regressions/ck_bytelock/validate/validate.c +++ b/regressions/ck_bytelock/validate/validate.c @@ -65,6 +65,9 @@ thread(void *null) exit(EXIT_FAILURE); } + if (context->tid == (unsigned int)nthr - 1) + context->tid = sizeof(lock.readers) + 1; + while (i--) { ck_bytelock_write_lock(&lock, context->tid); {