summaryrefslogtreecommitdiff
path: root/src/tcmalloc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcmalloc.cc')
-rw-r--r--src/tcmalloc.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tcmalloc.cc b/src/tcmalloc.cc
index 04ff2bb..530e4c5 100644
--- a/src/tcmalloc.cc
+++ b/src/tcmalloc.cc
@@ -700,6 +700,11 @@ class TCMallocImplementation : public MallocExtension {
return true;
}
+ if (strcmp(name, "tcmalloc.aggressive_memory_decommit") == 0) {
+ *value = size_t(Static::pageheap()->GetAggressiveDecommit());
+ return true;
+ }
+
return false;
}
@@ -712,6 +717,11 @@ class TCMallocImplementation : public MallocExtension {
return true;
}
+ if (strcmp(name, "tcmalloc.aggressive_memory_decommit") == 0) {
+ Static::pageheap()->SetAggressiveDecommit(value != 0);
+ return true;
+ }
+
return false;
}