Mercurial > hg > Members > innparusu > Gears
diff src/parallel_execution/context.c @ 124:acf0453b1c7a
Fix meta data pointer calculate
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 27 Sep 2016 16:19:31 +0900 |
parents | 4ff6f093b695 |
children | 77e60b6cdace |
line wrap: on
line diff
--- a/src/parallel_execution/context.c Tue Sep 13 11:54:25 2016 +0900 +++ b/src/parallel_execution/context.c Tue Sep 27 16:19:31 2016 +0900 @@ -52,6 +52,7 @@ extern __code createTask3_stub(struct Context*); extern __code createTask4_stub(struct Context*); extern __code createTask5_stub(struct Context*); +extern __code createTask6_stub(struct Context*); extern __code poll1_stub(struct Context*); extern __code poll2_stub(struct Context*); /* extern __code createTask3_stub(struct Context*); */ @@ -81,7 +82,7 @@ context->heapLimit = sizeof(union Data)*ALLOCATE_SIZE; context->code = (__code(**) (struct Context*)) NEWN(ALLOCATE_SIZE, void*); context->data = NEWN(ALLOCATE_SIZE, union Data*); - context->mData = NEWN(ALLOCATE_SIZE, union Data*); + context->mData = NEWN(ALLOCATE_SIZE, union MetaData*); context->heapStart = NEWN(context->heapLimit, char); context->heap = context->heapStart; @@ -133,6 +134,7 @@ context->code[CreateTask3] = createTask3_stub; context->code[CreateTask4] = createTask4_stub; context->code[CreateTask5] = createTask5_stub; + context->code[CreateTask6] = createTask6_stub; context->code[Poll1] = poll1_stub; context->code[Poll2] = poll2_stub; context->code[PutQueue1] = putQueue1_stub;