Changeset 29cb302 for libcfa/src/concurrency/kernel.cfa
- Timestamp:
- Jun 24, 2020, 3:37:32 PM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
r7bfc849 r29cb302 490 490 $thread * thrd_src = kernelTLS.this_thread; 491 491 492 #if !defined(__CFA_NO_STATISTICS__) 493 struct processor * last_proc = kernelTLS.this_processor; 494 #endif 495 492 496 // Run the thread on this processor 493 497 { … … 504 508 } 505 509 510 #if !defined(__CFA_NO_STATISTICS__) 511 if(last_proc != kernelTLS.this_processor) { 512 __tls_stats()->ready.threads.migration++; 513 } 514 #endif 515 506 516 /* paranoid */ verify( ! kernelTLS.preemption_state.enabled ); 507 517 /* 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.