view 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 source

#include "context.h"

void allocator(struct Context* context) {
    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;
}