Changes in / [9b33337:a10f6b4]


Ignore:
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bits/locks.hfa

    r9b33337 ra10f6b4  
    3131                // previous thread to acquire the lock
    3232                void* prev_thrd;
    33                 // keep track of number of times we had to spin, just in case the number is unexpectedly huge
    34                 size_t spin_count;
    3533        #endif
    3634};
     
    5048        static inline void ?{}( __spinlock_t & this ) {
    5149                this.lock = 0;
    52                 #ifdef __CFA_DEBUG__
    53                         this.spin_count = 0;
    54                 #endif
    5550        }
    5651
     
    7772                for ( unsigned int i = 1;; i += 1 ) {
    7873                        if ( (this.lock == 0) && (__atomic_test_and_set( &this.lock, __ATOMIC_ACQUIRE ) == 0) ) break;
    79                         #ifdef __CFA_DEBUG__
    80                                 this.spin_count++;
    81                         #endif
    8274                        #ifndef NOEXPBACK
    8375                                // exponential spin
  • libcfa/src/concurrency/io.cfa

    r9b33337 ra10f6b4  
    548548                        /* paranoid */ verify( proc == __cfaabi_tls.this_processor );
    549549                        /* paranoid */ verify( ! __preemption_enabled() );
    550 
    551                         return true;
    552550                }
    553551        #endif
  • libcfa/src/concurrency/kernel.cfa

    r9b33337 ra10f6b4  
    554554        /* paranoid */ verify( 0x0D15EA5E0D15EA5Ep == thrd->canary );
    555555
     556        const bool local = thrd->state != Start;
    556557        if (thrd->preempted == __NO_PREEMPTION) thrd->state = Ready;
    557558
     
    736737
    737738        // Check if there is a sleeping processor
    738         // int fd = __atomic_load_n(&this->procs.fd, __ATOMIC_SEQ_CST);
    739         int fd = 0;
    740         if( __atomic_load_n(&this->procs.fd, __ATOMIC_SEQ_CST) != 0 ) {
    741                 fd = __atomic_exchange_n(&this->procs.fd, 0, __ATOMIC_RELAXED);
    742         }
     739        int fd = __atomic_load_n(&this->procs.fd, __ATOMIC_SEQ_CST);
    743740
    744741        // If no one is sleeping, we are done
  • libcfa/src/concurrency/ready_queue.cfa

    r9b33337 ra10f6b4  
    681681        // Actually pop the list
    682682        struct thread$ * thrd;
    683         #if defined(USE_WORK_STEALING) || defined(USE_CPU_WORK_STEALING)
    684                 unsigned long long tsc_before = ts(lane);
    685         #endif
     683        unsigned long long tsc_before = ts(lane);
    686684        unsigned long long tsv;
    687685        [thrd, tsv] = pop(lane);
  • tools/jenkins/setup.sh.in

    r9b33337 ra10f6b4  
    4848                regex1='/([[:alpha:][:digit:]@/_.-]+)'
    4949                regex2='(libcfa[[:alpha:][:digit:].]+) => not found'
    50                 regex3='linux-vdso.so.1|linux-gate.so.1'
     50                regex3='linux-vdso.so.1'
    5151                if [[ $line =~ $regex1 ]]; then
    5252                        retsysdeps+=(${BASH_REMATCH[1]})
Note: See TracChangeset for help on using the changeset viewer.