Re-add purge_lock to funnel madvise(2) calls.

This commit is contained in:
Jason Evans
2010-03-26 18:10:19 -07:00
parent c03a63d68d
commit 169cbc1ef7
2 changed files with 39 additions and 48 deletions

View File

@@ -306,12 +306,9 @@ struct arena_s {
size_t ndirty;
/*
* Approximate number of pages being purged. It is possible for
* multiple threads to purge dirty pages concurrently, and they use
* npurgatory to indicate the total number of pages all threads are
* attempting to purge.
* True if pages are currently being purged by a thread.
*/
size_t npurgatory;
bool purgatory;
/*
* Size/address-ordered trees of this arena's available runs. The trees