Fixed a couple race conditions in the pthread runtime at the expense of leaking memory: chpl_execute_tasks_in_list() no longer frees memory allocated to the task list when called at the end of a sync statement. Also, chpl_add_to_task_list() is now thread safe.
Fixed a couple race conditions in the pthread runtime
at the expense of leaking memory: chpl_execute_tasks_in_list() no longer frees
memory allocated to the task list when called at the end of a sync statement.
Also, chpl_add_to_task_list() is now thread safe.


git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@14132 3a8e244f-b0f2-452b-bcba-4c88e055c3ca

sungeunchoi/chapel,sungeunchoi/chapel,hildeth/chapel,sungeunchoi/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,chizarlicious/chapel,chizarlicious/chapel,hildeth/chapel