equal
deleted
inserted
replaced
449 |
449 |
450 class ParallelTaskTerminator: public CHeapObj<mtGC> { |
450 class ParallelTaskTerminator: public CHeapObj<mtGC> { |
451 protected: |
451 protected: |
452 uint _n_threads; |
452 uint _n_threads; |
453 TaskQueueSetSuper* _queue_set; |
453 TaskQueueSetSuper* _queue_set; |
|
454 |
|
455 DEFINE_PAD_MINUS_SIZE(0, DEFAULT_CACHE_LINE_SIZE, 0); |
454 volatile uint _offered_termination; |
456 volatile uint _offered_termination; |
|
457 DEFINE_PAD_MINUS_SIZE(1, DEFAULT_CACHE_LINE_SIZE, sizeof(volatile uint)); |
455 |
458 |
456 #ifdef TRACESPINNING |
459 #ifdef TRACESPINNING |
457 static uint _total_yields; |
460 static uint _total_yields; |
458 static uint _total_spins; |
461 static uint _total_spins; |
459 static uint _total_peeks; |
462 static uint _total_peeks; |