From 2f72c59d558a65165ef8652cbfd93f74e0b1ef26 Mon Sep 17 00:00:00 2001 From: JothamWong <45916998+JothamWong@users.noreply.github.com> Date: Wed, 17 Apr 2024 01:17:39 +0800 Subject: [PATCH] Temporarily bandaid GC tests Note that adding to the standard library increases the min number of words that Ooga needs to operate --- src/tests/test.ts | 6 +++--- src/vm/oogavm-machine.ts | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tests/test.ts b/src/tests/test.ts index a5eb3a2..9aba2b9 100644 --- a/src/tests/test.ts +++ b/src/tests/test.ts @@ -477,7 +477,7 @@ x; `, 5, '', - 300 + 400 ); // Testing mark and sweep, with exactly one variable that should be freed @@ -497,7 +497,7 @@ x; `, 5, '', - 220 + 400 ); // Testing structs (no methods for now) @@ -1044,7 +1044,7 @@ go googa(x, y); `, true, '15', - 206 + 400 ); // Test various array expressions diff --git a/src/vm/oogavm-machine.ts b/src/vm/oogavm-machine.ts index 0616d0a..ebfa73d 100644 --- a/src/vm/oogavm-machine.ts +++ b/src/vm/oogavm-machine.ts @@ -1267,7 +1267,6 @@ export function run(numWords = 1000000) { log('Program value is ' + returnValue); log('After STD initialization: '); printHeapUsage(); - console.log("Return value is " + returnValue); debugHeap(); log('Return value: ' + returnValue); return returnValue;