- if (BAMBOO_NUM_OF_CORE==STARTUPCORE) {
- tmc_spin_barrier_wait(&pmc_heapptr->barrier);
- //people will resend...no need to get gcflag so quickly
- gcflag=false;
- // for(int i=0;i<NUMCORES4GC;i+=2) {
- // tprintf("%u %x %x\n",i, pmc_heapptr->regions[i].lastptr, pmc_heapptr->regions[i+1].lastptr);
- // tprintf("%x %x %x %x\n", pmc_heapptr->regions[i].startptr, pmc_heapptr->regions[i].endptr, pmc_heapptr->regions[i+1].startptr, pmc_heapptr->regions[i+1].endptr);
- // tprintf("%u %u %u %u\n", pmc_heapptr->regions[i].lowunit, pmc_heapptr->regions[i].highunit, pmc_heapptr->regions[i+1].lowunit, pmc_heapptr->regions[i+1].highunit);
- // }
- // for(int i=0;i<NUMPMCUNITS;i++) {
- // tprintf("%u %x %u\n",i, pmc_heapptr->units[i].endptr, pmc_heapptr->units[i].regionnum);
- // }
- } else {
- //start to listen for gcflags before we exit
- gcflag=false;
- tmc_spin_barrier_wait(&pmc_heapptr->barrier);
- }