parent
19ff2cefba
commit
71d94828a2
@ -42,7 +42,7 @@ mb_write(void)
|
|||||||
: /* Inputs. */
|
: /* Inputs. */
|
||||||
: "memory" /* Clobbers. */
|
: "memory" /* Clobbers. */
|
||||||
);
|
);
|
||||||
#else
|
# else
|
||||||
/*
|
/*
|
||||||
* This is hopefully enough to keep the compiler from reordering
|
* This is hopefully enough to keep the compiler from reordering
|
||||||
* instructions around this one.
|
* instructions around this one.
|
||||||
@ -52,7 +52,7 @@ mb_write(void)
|
|||||||
: /* Inputs. */
|
: /* Inputs. */
|
||||||
: "memory" /* Clobbers. */
|
: "memory" /* Clobbers. */
|
||||||
);
|
);
|
||||||
#endif
|
# endif
|
||||||
}
|
}
|
||||||
#elif (defined(__amd64__) || defined(__x86_64__))
|
#elif (defined(__amd64__) || defined(__x86_64__))
|
||||||
JEMALLOC_INLINE void
|
JEMALLOC_INLINE void
|
||||||
@ -104,7 +104,7 @@ mb_write(void)
|
|||||||
{
|
{
|
||||||
malloc_mutex_t mtx;
|
malloc_mutex_t mtx;
|
||||||
|
|
||||||
malloc_mutex_init(&mtx, WITNESS_RANK_OMIT);
|
malloc_mutex_init(&mtx, "mb", WITNESS_RANK_OMIT);
|
||||||
malloc_mutex_lock(NULL, &mtx);
|
malloc_mutex_lock(NULL, &mtx);
|
||||||
malloc_mutex_unlock(NULL, &mtx);
|
malloc_mutex_unlock(NULL, &mtx);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user