Changes in / [401e61f:dafdbe7]


Ignore:
Location:
src
Files:
3 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/Makefile.am

    r401e61f rdafdbe7  
    9292
    9393## =========================================================================================================
     94loop$(EXEEXT):
     95        @@BACKEND_CC@ loop.c      -DBENCH_N=5000000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     96
     97function$(EXEEXT):
     98        @@BACKEND_CC@ function.c  -DBENCH_N=5000000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     99
     100fetch_add$(EXEEXT):
     101        @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000  -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     102
     103## =========================================================================================================
    94104ctxswitch$(EXEEXT): \
     105        loop.run                                \
     106        function.run                    \
     107        fetch_add.run                   \
    95108        ctxswitch-pthread.run           \
    96109        ctxswitch-cfa_coroutine.run     \
     
    139152## =========================================================================================================
    140153mutex$(EXEEXT) :\
    141         mutex-function.run      \
    142         mutex-fetch_add.run     \
     154        loop.run                        \
     155        function.run            \
     156        fetch_add.run           \
    143157        mutex-pthread_lock.run  \
    144158        mutex-upp.run           \
     
    147161        mutex-cfa4.run          \
    148162        mutex-java_thread.run
    149 
    150 mutex-function$(EXEEXT):
    151         @@BACKEND_CC@ mutex/function.c    -DBENCH_N=500000000   -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    152 
    153 mutex-fetch_add$(EXEEXT):
    154         @@BACKEND_CC@ mutex/fetch_add.c   -DBENCH_N=500000000   -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    155163
    156164mutex-pthread_lock$(EXEEXT):
  • src/benchmark/Makefile.in

    r401e61f rdafdbe7  
    505505        @echo "}"
    506506
     507loop$(EXEEXT):
     508        @@BACKEND_CC@ loop.c      -DBENCH_N=5000000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     509
     510function$(EXEEXT):
     511        @@BACKEND_CC@ function.c  -DBENCH_N=5000000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     512
     513fetch_add$(EXEEXT):
     514        @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000  -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     515
    507516ctxswitch$(EXEEXT): \
     517        loop.run                                \
     518        function.run                    \
     519        fetch_add.run                   \
    508520        ctxswitch-pthread.run           \
    509521        ctxswitch-cfa_coroutine.run     \
     
    551563
    552564mutex$(EXEEXT) :\
    553         mutex-function.run      \
    554         mutex-fetch_add.run     \
     565        loop.run                        \
     566        function.run            \
     567        fetch_add.run           \
    555568        mutex-pthread_lock.run  \
    556569        mutex-upp.run           \
     
    559572        mutex-cfa4.run          \
    560573        mutex-java_thread.run
    561 
    562 mutex-function$(EXEEXT):
    563         @@BACKEND_CC@ mutex/function.c    -DBENCH_N=500000000   -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    564 
    565 mutex-fetch_add$(EXEEXT):
    566         @@BACKEND_CC@ mutex/fetch_add.c   -DBENCH_N=500000000   -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    567574
    568575mutex-pthread_lock$(EXEEXT):
  • src/libcfa/concurrency/kernel.c

    r401e61f rdafdbe7  
    663663        __cfaabi_dbg_print_safe("Kernel : Processor %p ready to sleep\n", this);
    664664
    665         verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 65536);
    666         sem_wait(&idleLock);
     665        verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 200);
     666        int __attribute__((unused)) ret = sem_wait(&idleLock);
     667        verify(ret > 0 || errno == EINTR);
    667668
    668669        __cfaabi_dbg_print_safe("Kernel : Processor %p woke up and ready to run\n", this);
     
    678679void wake(processor * this) {
    679680        __cfaabi_dbg_print_safe("Kernel : Waking up processor %p\n", this);
    680         sem_post(&this->idleLock);
    681         verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 65536);
     681        int __attribute__((unused)) ret = sem_post(&this->idleLock);
     682        verify(ret > 0 || errno == EINTR);
     683        verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 200);
    682684}
    683685
Note: See TracChangeset for help on using the changeset viewer.