Arena chunk decommit cleanups and fixes.

Decommit arena chunk header during chunk deallocation if the rest of the
chunk is decommitted.
This commit is contained in:
Jason Evans
2015-08-09 16:47:27 -07:00
parent 4be0c3ca42
commit de249c8679
5 changed files with 55 additions and 29 deletions

View File

@@ -27,7 +27,7 @@ struct extent_node_s {
/*
* True if physical memory is committed to the extent, whether
* explicitly or implicitly as on a system that overcommits and
* satisfies physical mamory needs on demand via soft page faults.
* satisfies physical memory needs on demand via soft page faults.
*/
bool en_committed;
@@ -125,6 +125,7 @@ JEMALLOC_INLINE bool
extent_node_committed_get(const extent_node_t *node)
{
assert(!extent_node_achunk_get(node));
return (node->en_committed);
}