# HG changeset patch # User anatofuz # Date 1598237630 -32400 # Node ID f967c9a372a4297623d78b9b7536151bd5f8137b # Parent ba423a2e0e8e3752d4f21dc3a9fd7cf91ae5aee0 remove context->before at testfile diff -r ba423a2e0e8e -r f967c9a372a4 src/parallel_execution/perlTests/BoundedBuffer.c --- a/src/parallel_execution/perlTests/BoundedBuffer.c Mon Aug 24 11:52:25 2020 +0900 +++ b/src/parallel_execution/perlTests/BoundedBuffer.c Mon Aug 24 11:53:50 2020 +0900 @@ -19,7 +19,6 @@ struct Semaphore* semaphore = buffer->emptyCount; Gearef(context, Semaphore)->semaphore = (union Data*) semaphore; Gearef(context, Semaphore)->next = C_putBoundedBuffer1; - context->before = C_putBoundedBuffer; goto meta(context, semaphore->p); } @@ -34,7 +33,6 @@ struct Semaphore* semaphore = buffer->lock; Gearef(context, Semaphore)->semaphore = (union Data*) semaphore; Gearef(context, Semaphore)->next = C_putBoundedBuffer2; - context->before = C_putBoundedBuffer1; goto meta(context, semaphore->p); } @@ -55,7 +53,6 @@ struct Semaphore* semaphore = buffer->lock; Gearef(context, Semaphore)->semaphore = (union Data*) semaphore; Gearef(context, Semaphore)->next = C_putBoundedBuffer3; - context->before = C_putBoundedBuffer2; goto meta(context, semaphore->v); } @@ -70,7 +67,6 @@ struct Semaphore* semaphore = buffer->fullCount; Gearef(context, Semaphore)->semaphore = (union Data*) semaphore; Gearef(context, Semaphore)->next = C_putBoundedBuffer4; - context->before = C_putBoundedBuffer3; goto meta(context, semaphore->v); } @@ -82,7 +78,6 @@ } __code putBoundedBuffer4(struct Context *context,struct BoundedBuffer* buffer, union Data* data, enum Code next) { - context->before = C_putBoundedBuffer4; goto meta(context, next); } @@ -98,7 +93,6 @@ struct Semaphore* semaphore = buffer->fullCount; Gearef(context, Semaphore)->semaphore = (union Data*) semaphore; Gearef(context, Semaphore)->next = C_takeBoundedBuffer1; - context->before = C_takeBoundedBuffer; goto meta(context, semaphore->p); } @@ -114,7 +108,6 @@ struct Semaphore* semaphore = buffer->lock; Gearef(context, Semaphore)->semaphore = (union Data*) semaphore; Gearef(context, Semaphore)->next = C_takeBoundedBuffer2; - context->before = C_takeBoundedBuffer1; goto meta(context, semaphore->p); } @@ -135,7 +128,6 @@ struct Semaphore* semaphore = buffer->lock; Gearef(context, Semaphore)->semaphore = (union Data*) semaphore; Gearef(context, Semaphore)->next = C_takeBoundedBuffer3; - context->before = C_takeBoundedBuffer2; goto meta(context, semaphore->v); } @@ -151,7 +143,6 @@ struct Semaphore* semaphore = buffer->emptyCount; Gearef(context, Semaphore)->semaphore = (union Data*) semaphore; Gearef(context, Semaphore)->next = C_takeBoundedBuffer4; - context->before = C_takeBoundedBuffer3; goto meta(context, semaphore->v); } @@ -165,7 +156,6 @@ __code takeBoundedBuffer4(struct Context *context,struct BoundedBuffer* buffer, enum Code next,union Data **O_data) { Data* data __attribute__((unused)) = *O_data; *O_data = data; - context->before = C_takeBoundedBuffer4; goto meta(context, next); } __code takeBoundedBuffer4_stub(struct Context* context) { diff -r ba423a2e0e8e -r f967c9a372a4 src/parallel_execution/perlTests/testfiles/twice/main.c --- a/src/parallel_execution/perlTests/testfiles/twice/main.c Mon Aug 24 11:52:25 2020 +0900 +++ b/src/parallel_execution/perlTests/testfiles/twice/main.c Mon Aug 24 11:53:50 2020 +0900 @@ -17,7 +17,6 @@ // loopCounter->tree = createRedBlackTree(context); loopCounter->i = 0; taskManager->taskManager = (union Data*)createTaskManagerImpl(context, cpu_num, gpu_num, 0); - context->before = C_initDataGears; goto meta(context, C_code1); } @@ -37,7 +36,6 @@ /* puts("tree"); */ /* print_tree(context->data[Tree]->tree.root); */ /* puts("result"); */ - context->before = C_code1; goto meta(context, C_createTask1); } @@ -117,7 +115,6 @@ __code code2(struct Context *context,struct TaskManager* taskManager) { Gearef(context, TaskManager)->taskManager = (union Data*) taskManager; Gearef(context, TaskManager)->next = C_exit_code; - context->before = C_code2; goto meta(context, taskManager->shutdown); }