Mercurial > hg > Members > Moririn
annotate src/parallel_execution/allocate.c @ 217:c34e6aa10967
Fix DataGear access name
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 09 Jan 2017 01:18:13 +0900 |
parents | 473b7d990a1f |
children |
rev | line source |
---|---|
86 | 1 #include "context.h" |
136 | 2 #include "origin_cs.h" |
86 | 3 |
130 | 4 union Data* allocator(struct Context* context) { |
86 | 5 context->data[++context->dataNum] = context->heap; |
217
c34e6aa10967
Fix DataGear access name
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
6 context->heap += context->data[D_Allocate]->Allocate.size; |
130 | 7 return context->data[context->dataNum]; |
86 | 8 } |
130 | 9 |
131
a4507906938c
Fix compile error but not work
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
130
diff
changeset
|
10 __code allocatorCS(struct Context* context, struct Allocate* allocate) { |
130 | 11 context->data[++context->dataNum] = context->heap; |
12 context->heap += allocate->size; | |
13 goto meta(context, allocate->next); | |
14 } | |
15 | |
16 __code allocator_stub(struct Context* context) { | |
217
c34e6aa10967
Fix DataGear access name
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents:
148
diff
changeset
|
17 goto allocatorCS(context, &context->data[D_Allocate]->Allocate); |
130 | 18 } |