Checking patch nptl/pthread_cond_wait.c... Hunk #1 succeeded at 379 (offset 13 lines). error: while searching for: uint64_t g1_start = __condvar_load_g1_start_relaxed (cond); unsigned int lowseq = (g1_start & 1) == g ? signals : g1_start & ~1U; /* Spin-wait first. Note that spinning first without checking whether a timeout passed might lead to what looks like a spurious wake-up even though we should return ETIMEDOUT (e.g., if the caller provides an absolute timeout that is clearly in the past). However, (1) spurious wake-ups are allowed, (2) it seems unlikely that a user will (ab)use pthread_cond_wait as a check for whether a point in time is in the past, and (3) spinning first without having to compare against the current time seems to be the right choice from a performance perspective for most use cases. */ unsigned int spin = maxspin; while (spin > 0 && ((int)(signals - lowseq) < 2)) { /* Check that we are not spinning on a group that's already closed. */ if (seq < (g1_start >> 1)) break; /* TODO Back off. */ /* Reload signals. See above for MO. */ signals = atomic_load_acquire (cond->__data.__g_signals + g); g1_start = __condvar_load_g1_start_relaxed (cond); lowseq = (g1_start & 1) == g ? signals : g1_start & ~1U; spin--; } if (seq < (g1_start >> 1)) { /* If the group is closed already, error: patch failed: nptl/pthread_cond_wait.c:425 error: nptl/pthread_cond_wait.c: patch does not apply