Changes in / [9b33337:a10f6b4]
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/locks.hfa
r9b33337 ra10f6b4 31 31 // previous thread to acquire the lock 32 32 void* prev_thrd; 33 // keep track of number of times we had to spin, just in case the number is unexpectedly huge34 size_t spin_count;35 33 #endif 36 34 }; … … 50 48 static inline void ?{}( __spinlock_t & this ) { 51 49 this.lock = 0; 52 #ifdef __CFA_DEBUG__53 this.spin_count = 0;54 #endif55 50 } 56 51 … … 77 72 for ( unsigned int i = 1;; i += 1 ) { 78 73 if ( (this.lock == 0) && (__atomic_test_and_set( &this.lock, __ATOMIC_ACQUIRE ) == 0) ) break; 79 #ifdef __CFA_DEBUG__80 this.spin_count++;81 #endif82 74 #ifndef NOEXPBACK 83 75 // exponential spin -
libcfa/src/concurrency/io.cfa
r9b33337 ra10f6b4 548 548 /* paranoid */ verify( proc == __cfaabi_tls.this_processor ); 549 549 /* paranoid */ verify( ! __preemption_enabled() ); 550 551 return true;552 550 } 553 551 #endif -
libcfa/src/concurrency/kernel.cfa
r9b33337 ra10f6b4 554 554 /* paranoid */ verify( 0x0D15EA5E0D15EA5Ep == thrd->canary ); 555 555 556 const bool local = thrd->state != Start; 556 557 if (thrd->preempted == __NO_PREEMPTION) thrd->state = Ready; 557 558 … … 736 737 737 738 // 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); 743 740 744 741 // If no one is sleeping, we are done -
libcfa/src/concurrency/ready_queue.cfa
r9b33337 ra10f6b4 681 681 // Actually pop the list 682 682 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); 686 684 unsigned long long tsv; 687 685 [thrd, tsv] = pop(lane); -
tools/jenkins/setup.sh.in
r9b33337 ra10f6b4 48 48 regex1='/([[:alpha:][:digit:]@/_.-]+)' 49 49 regex2='(libcfa[[:alpha:][:digit:].]+) => not found' 50 regex3='linux-vdso.so.1 |linux-gate.so.1'50 regex3='linux-vdso.so.1' 51 51 if [[ $line =~ $regex1 ]]; then 52 52 retsysdeps+=(${BASH_REMATCH[1]})
Note: See TracChangeset
for help on using the changeset viewer.