Commit 12cf0228 authored by Geoff Simmons's avatar Geoff Simmons

add memory barriers before evaluating RDR_Depleted()

parent 42b61b35
......@@ -145,6 +145,7 @@ RDR_Stats(void)
int
RDR_Depleted(void)
{
VWMB();
return (rdr_tx_free < tx_thresh) || (rdr_rec_free < rec_thresh)
|| (rdr_chunk_free < chunk_thresh);
}
......
......@@ -250,6 +250,7 @@ wrt_write(tx_t *tx)
assert(tx->state == TX_FREE);
VRMB();
if (RDR_Depleted() || wrt_nfree_tx > tx_thresh
|| wrt_nfree_recs > rec_thresh || wrt_nfree_chunks > chunk_thresh)
wrt_return_freelist();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment