Reworked chpl_startTrackingMemory, which calls the chpl_setMemFlags primitive on each locale, so that the on-statement is executed only for remote locales within the coforall-loop.  This is necessary for tests that are restricted via --maxThreads=1 since two threads are needed to handle the non-blocking implementation of the coforall on idiom.  Unfortunately, inserting this conditional statement in between the coforall and the on removes the non-blocking implementation and will not perform as well on large numbers of processors since p threads will be started on Locale 0 to handle each on-statement.
Reworked chpl_startTrackingMemory, which calls the chpl_setMemFlags
primitive on each locale, so that the on-statement is executed only
for remote locales within the coforall-loop.  This is necessary for
tests that are restricted via --maxThreads=1 since two threads are
needed to handle the non-blocking implementation of the coforall on
idiom.  Unfortunately, inserting this conditional statement in between
the coforall and the on removes the non-blocking implementation and
will not perform as well on large numbers of processors since p
threads will be started on Locale 0 to handle each on-statement.

This should fix the new --no-local regressions.


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

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