aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library_gc.js2
-rw-r--r--src/settings.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/library_gc.js b/src/library_gc.js
index 75cea390..ccf6656d 100644
--- a/src/library_gc.js
+++ b/src/library_gc.js
@@ -18,7 +18,7 @@ if (GC_SUPPORT) {
GC.initted = true;
#if GENERATING_HTML
setInterval(function() {
- GC.maybeGC();
+ GC.maybeCollect();
}, 1000);
#else
// No HTML intervals, so you need to call GC.maybeCollect() or GC.collect() manually
diff --git a/src/settings.js b/src/settings.js
index 2ca82238..1910e943 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -216,7 +216,7 @@ var FAKE_X86_FP80 = 1; // Replaces x86_fp80 with double. This loses precision. I
// if you can, to get the original source code to build without x86_fp80
// (which is nonportable anyhow).
-var GC_SUPPORT = 0; // Enables GC, see gc.h
+var GC_SUPPORT = 1; // Enables GC, see gc.h (this does not add overhead, so it is on by default)
// Compiler debugging options
var DEBUG_TAGS_SHOWING = [];