Mercurial > hg > Members > innparusu > Gears
diff src/parallel_execution/context.c @ 123:4ff6f093b695
Fix segmentation fault
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Sep 2016 11:54:25 +0900 |
parents | a086857e1812 |
children | acf0453b1c7a |
line wrap: on
line diff
--- a/src/parallel_execution/context.c Thu Aug 25 03:23:29 2016 +0900 +++ b/src/parallel_execution/context.c Tue Sep 13 11:54:25 2016 +0900 @@ -51,6 +51,7 @@ extern __code createTask2_stub(struct Context*); extern __code createTask3_stub(struct Context*); extern __code createTask4_stub(struct Context*); +extern __code createTask5_stub(struct Context*); extern __code poll1_stub(struct Context*); extern __code poll2_stub(struct Context*); /* extern __code createTask3_stub(struct Context*); */ @@ -80,6 +81,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->heapStart = NEWN(context->heapLimit, char); context->heap = context->heapStart; @@ -130,6 +132,9 @@ context->code[CreateTask2] = createTask2_stub; context->code[CreateTask3] = createTask3_stub; context->code[CreateTask4] = createTask4_stub; + context->code[CreateTask5] = createTask5_stub; + context->code[Poll1] = poll1_stub; + context->code[Poll2] = poll2_stub; context->code[PutQueue1] = putQueue1_stub; context->code[PutQueue2] = putQueue2_stub; context->code[PutQueue3] = putQueue3_stub;