1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 07:33:01 +00:00

Remove scratch memory functionality.

This commit is contained in:
bakpakin
2017-07-02 19:52:44 -04:00
parent 113c6cd6ad
commit bfadf6ff12
5 changed files with 103 additions and 55 deletions

View File

@@ -505,9 +505,6 @@ void gst_init(Gst *vm) {
vm->black = 0;
/* Add thread */
vm->thread = NULL;
/* Set up scratch memory */
vm->scratch = NULL;
vm->scratch_len = 0;
/* Set up the cache */
vm->cache = gst_raw_calloc(1, 128 * sizeof(GstValue));
vm->cache_capacity = vm->cache == NULL ? 0 : 128;
@@ -526,8 +523,6 @@ void gst_deinit(Gst *vm) {
vm->modules = NULL;
vm->registry = NULL;
vm->ret.type = GST_NIL;
vm->scratch = NULL;
vm->scratch_len = 0;
/* Deinit the cache */
gst_raw_free(vm->cache);
vm->cache = NULL;