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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.