about summary refs log tree commit diff stats
path: root/043space.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-04-14 10:05:54 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-04-14 10:05:54 -0700
commitb16cc0294e517bbf648261c6e298e01362db9ab0 (patch)
treeef8dcacc78334ff9701f9861610710b8344d9385 /043space.cc
parent6a7ff61cb909231655e6648618efb37af132bd48 (diff)
downloadmu-b16cc0294e517bbf648261c6e298e01362db9ab0.tar.gz
3822
Provide an option to disable memory reclamation. This makes edit/ *much*
more responsive. The cost: memory use grows monotonically. Since we no
longer have a safe way to reclaim heap allocations, we never do so.
Diffstat (limited to '043space.cc')
-rw-r--r--043space.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/043space.cc b/043space.cc
index 1562c11f..770871c1 100644
--- a/043space.cc
+++ b/043space.cc
@@ -230,6 +230,7 @@ try_reclaim_locals();
 
 :(code)
 void try_reclaim_locals() {
+  if (!Reclaim_memory) return;
   // only reclaim routines starting with 'local-scope'
   const recipe_ordinal r = get(Recipe_ordinal, current_recipe_name());
   const recipe& exiting_recipe = get(Recipe, r);