diff src/parallel_execution/allocate.c @ 138:337fdbffa693 default tip

Merge
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Sat, 01 Oct 2016 00:23:35 +0900
parents 135472238fb7
children
line wrap: on
line diff
--- a/src/parallel_execution/allocate.c	Thu Sep 29 22:22:36 2016 +0900
+++ b/src/parallel_execution/allocate.c	Sat Oct 01 00:23:35 2016 +0900
@@ -4,3 +4,8 @@
     context->data[++context->dataNum] = context->heap;
     context->heap += context->data[Allocate]->allocate.size;
 }
+
+void metaAllocator(struct Context* context) {
+    context->mData[++context->metaDataNum] = context->heap;
+    context->heap += context->data[Allocate]->allocate.size;
+}