Ignore:
Timestamp:
Jun 24, 2020, 3:37:32 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
d72c074
Parents:
7bfc849
Message:

cfa stats now count number of migrations

File:
1 edited

Legend:

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

    r7bfc849 r29cb302  
    490490        $thread * thrd_src = kernelTLS.this_thread;
    491491
     492        #if !defined(__CFA_NO_STATISTICS__)
     493                struct processor * last_proc = kernelTLS.this_processor;
     494        #endif
     495
    492496        // Run the thread on this processor
    493497        {
     
    504508        }
    505509
     510        #if !defined(__CFA_NO_STATISTICS__)
     511                if(last_proc != kernelTLS.this_processor) {
     512                        __tls_stats()->ready.threads.migration++;
     513                }
     514        #endif
     515
    506516        /* paranoid */ verify( ! kernelTLS.preemption_state.enabled );
    507517        /* paranoid */ verifyf( ((uintptr_t)thrd_src->context.SP) < ((uintptr_t)__get_stack(thrd_src->curr_cor)->base ), "ERROR : Returning $thread %p has been corrupted.\n StackPointer too small.\n", thrd_src );
Note: See TracChangeset for help on using the changeset viewer.