Ignore:
Timestamp:
Mar 25, 2021, 2:42:38 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
bd0bdd37
Parents:
86dc95d
Message:

Fixed misleading stats counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/ready_queue.cfa

    r86dc95d r3143f28  
    3939#endif
    4040
    41 #define BIAS 16
     41#define BIAS 4
    4242
    4343// returns the maximum number of processors the RWLock support
     
    352352
    353353                #if !defined(__CFA_NO_STATISTICS__)
    354                         if(locali) {
    355                                 __tls_stats()->ready.pick.pop.local++;
    356                         }
    357                         if(localj) {
     354                        if(locali && localj) {
    358355                                __tls_stats()->ready.pick.pop.local++;
    359356                        }
Note: See TracChangeset for help on using the changeset viewer.