Ignore:
Timestamp:
Jun 19, 2020, 5:30:16 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
b232745
Parents:
68f36f4
Message:

Modified StackLF to use `next instead of getNext

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/heap.cfa

    r68f36f4 r0f89d4f  
    208208
    209209#if BUCKETLOCK == LOCKFREE
    210 static inline Link(HeapManager.Storage) * getNext( HeapManager.Storage * this ) { return &this->header.kind.real.next; }
     210static inline Link(HeapManager.Storage) * ?`next( HeapManager.Storage * this ) { return &this->header.kind.real.next; }
    211211static inline void ?{}( HeapManager.FreeHeader & ) {}
    212212static inline void ^?{}( HeapManager.FreeHeader & ) {}
     
    665665                #else
    666666                for ( HeapManager.Storage * p = top( freeLists[i].freeList ); p != 0p; /* p = getNext( p )->top */) {
    667                         typeof(p) temp = getNext( p )->top;                     // FIX ME: direct assignent fails, initialization works
     667                        typeof(p) temp = ( p )`next->top;                       // FIX ME: direct assignent fails, initialization works
    668668                        p = temp;
    669669                #endif // BUCKETLOCK
     
    901901                        return oaddr;
    902902                } // if
    903        
     903
    904904                // change size, DO NOT preserve STICKY PROPERTIES.
    905905                free( oaddr );
Note: See TracChangeset for help on using the changeset viewer.