Ignore:
Timestamp:
Aug 25, 2020, 6:08:45 PM (5 years ago)
Author:
m3zulfiq <m3zulfiq@…>
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
Message:

Added alloc interface with backtick and removed polymorphic alloc interface. Also, changed ready_queue.cfa: 549, 640; setup.cfa: 386; to fit the new alloc interface.

Location:
libcfa/src/concurrency
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io/setup.cfa

    rd119d613 rceb7db8  
    384384                        /* paranoid */ verify( is_pow2( params_in.num_ready ) || (params_in.num_ready < 8) );
    385385                        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 );
    387387                        for(i; sq.ready_cnt) {
    388388                                sq.ready[i] = -1ul32;
  • libcfa/src/concurrency/ready_queue.cfa

    rd119d613 rceb7db8  
    547547
    548548                // Allocate new array (uses realloc and memcpies the data)
    549                 lanes.data = alloc(lanes.data, ncount);
     549                lanes.data = alloc( ncount, lanes.data`realloc );
    550550
    551551                // Fix the moved data
     
    638638
    639639                // 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 );
    641641
    642642                // Fix the moved data
Note: See TracChangeset for help on using the changeset viewer.