diff src/lru_cache.sml @ 2262:34ad83d9b729

Fix recording bugs to do with nesting and buffer reallocation. Stop MonoFooify printing spurious errors.
author Ziv Scully <ziv@mit.edu>
date Wed, 07 Oct 2015 08:58:08 -0400
parents b1ba35ce2613
children a647a1560628
line wrap: on
line diff
--- a/src/lru_cache.sml	Wed Sep 30 00:33:52 2015 -0400
+++ b/src/lru_cache.sml	Wed Oct 07 08:58:08 2015 -0400
@@ -91,7 +91,8 @@
              newline,
              string ("  uw_Sqlcache_CacheValue *v = uw_Sqlcache_check(cache" ^ i ^ ", ks);"),
              newline,
-             string "  if (v) {",
+             (* If the output is null, it means we had too much recursion, so it's a miss. *)
+             string "  if (v && v->output != NULL) {",
              newline,
              string ("    puts(\"SQLCACHE: hit " ^ i ^ ".\");"),
              newline,