aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-15 11:57:37 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-15 12:00:01 -0700
commit1a55bf326caa5e2a8f3a1d3a0494f3a44a10f47d (patch)
tree7357c5aa3b24394d8412ade2f72e9141362b8958 /system
parent1cd225a385cabf5857054e88b1931f997953148f (diff)
further gc work, basic api written
Diffstat (limited to 'system')
-rw-r--r--system/include/gc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/include/gc.h b/system/include/gc.h
index a4f7afbb..773098ff 100644
--- a/system/include/gc.h
+++ b/system/include/gc.h
@@ -32,9 +32,14 @@ void GC_FREE(void *ptr);
void GC_REGISTER_FINALIZER_NO_ORDER((void*)ptr, void (*func)(), void *arg,
void *(*old_func)(), void *old_arg);
-/* Non-Boehm addition. Call this once per frame or such, it will collect if necessary */
+/* Non-Boehm additions */
+
+/* Call this once per frame or such, it will collect if necessary */
void GC_MAYBE_COLLECT();
+/* Forces a GC. Mainly useful for testing, but call it if you know a good time to GC in your app. */
+void GC_FORCE_COLLECT();
+
#ifdef __cplusplus
}
#endif