diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-02-01 02:39:12 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-02-01 09:05:24 +0700 |
commit | defdd23b213d8b4ad79ec1c263d19380fbaa2b62 (patch) | |
tree | 48753980024850139ba6f0a51f92a9c127c88427 /system | |
parent | ce3519e96e085b411a9d31a3aa21a9aecbc3ce38 (diff) |
Add support for GC_REALLOC().
Diffstat (limited to 'system')
-rw-r--r-- | system/include/gc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system/include/gc.h b/system/include/gc.h index e4593c51..1a236f3d 100644 --- a/system/include/gc.h +++ b/system/include/gc.h @@ -32,6 +32,9 @@ void *GC_MALLOC_ATOMIC(int bytes); /* Allocate memory that might container pointers but that can't be collected. */ void *GC_MALLOC_UNCOLLECTABLE(int bytes); +/* Reallocate a GC managed memory block to a new size. */ +void *GC_REALLOC(void *ptr, int newBytes); + /* Explicitly deallocate an object. Dangerous as it forces a free and does not check if the object is reffed. */ void GC_FREE(void *ptr); |