Skip to content

Commit

Permalink
Merge pull request #69 from kevans91/deadlock-dbg
Browse files Browse the repository at this point in the history
Fix DETECT_DEADLOCK build after 1a965785f335
  • Loading branch information
seanbruno authored and kwitaszczyk committed Dec 3, 2021
1 parent 0fa1372 commit ee829b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bsd-user/freebsd/os-thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static abi_long _umtx_wait(abi_ulong *addr, abi_ulong target_val, size_t tsz,

/* target_val has already been tswap'ed. */

if (ut == NULL) {
if (t == NULL) {
struct timespec ts;

ts.tv_sec = 5;
Expand Down Expand Up @@ -482,7 +482,7 @@ abi_long freebsd_umtx_sem2_wait(abi_ulong obj, size_t tsz, void *t)
(int)tsz, t);

#if DETECT_DEADLOCK
if (ut != NULL) {
if (t != NULL) {
ret = _umtx_wait_uint_private(addr, tswap32(USEM_HAS_WAITERS),
tsz, t, __func__);
} else {
Expand Down Expand Up @@ -522,7 +522,7 @@ abi_long freebsd_umtx_sem2_wait(abi_ulong obj, size_t tsz, void *t)
DEBUG_UMTX("<WAIT SEM2> %s: _umtx_op(%p, %d, %p)\n",
__func__, addr, UMTX_OP_WAIT_UINT, (int)tsz, t);
#if DETECT_DEADLOCK
if (ut != NULL) {
if (t != NULL) {
ret = _umtx_wait_uint(addr, tswap32(USEM_HAS_WAITERS), tsz, t,
__func__);
} else {
Expand Down

0 comments on commit ee829b6

Please sign in to comment.