Changeset ceb7db8 for libcfa/src/concurrency
- Timestamp:
- Aug 25, 2020, 6:08:45 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- f7fac4b
- Parents:
- d119d613
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
-
io/setup.cfa (modified) (1 diff)
-
ready_queue.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/setup.cfa
rd119d613 rceb7db8 384 384 /* paranoid */ verify( is_pow2( params_in.num_ready ) || (params_in.num_ready < 8) ); 385 385 sq.ready_cnt = max( params_in.num_ready, 8 ); 386 sq.ready = alloc _align( 64, sq.ready_cnt);386 sq.ready = alloc( sq.ready_cnt, 64`align ); 387 387 for(i; sq.ready_cnt) { 388 388 sq.ready[i] = -1ul32; -
libcfa/src/concurrency/ready_queue.cfa
rd119d613 rceb7db8 547 547 548 548 // Allocate new array (uses realloc and memcpies the data) 549 lanes.data = alloc( lanes.data, ncount);549 lanes.data = alloc( ncount, lanes.data`realloc ); 550 550 551 551 // Fix the moved data … … 638 638 639 639 // Allocate new array (uses realloc and memcpies the data) 640 lanes.data = alloc( lanes.data, lanes.count);640 lanes.data = alloc( lanes.count, lanes.data`realloc ); 641 641 642 642 // Fix the moved data
Note:
See TracChangeset
for help on using the changeset viewer.