aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2013-02-01 01:24:59 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2013-02-01 01:24:59 +0700
commit5105bc966c9ac893a86901658debc7b2572b82d5 (patch)
tree07baa0d1b6d1c5e2b23bbb8f2cecfbb950e510f7 /system
parent7b129450d48a3552dc8189d96ef695db8cc9c15b (diff)
Add GC support for GC_MALLOC_UNCOLLECTABLE.
Diffstat (limited to 'system')
-rw-r--r--system/include/gc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/include/gc.h b/system/include/gc.h
index e0419dcb..e4593c51 100644
--- a/system/include/gc.h
+++ b/system/include/gc.h
@@ -29,6 +29,9 @@ void *GC_MALLOC(int bytes);
/* Allocate memory for an object that the user promises will not contain pointers. */
void *GC_MALLOC_ATOMIC(int bytes);
+/* Allocate memory that might container pointers but that can't be collected. */
+void *GC_MALLOC_UNCOLLECTABLE(int bytes);
+
/* Explicitly deallocate an object. Dangerous as it forces a free and does not check if the object is reffed. */
void GC_FREE(void *ptr);