Changeset 0f89d4f for libcfa/src/heap.cfa
- Timestamp:
- Jun 19, 2020, 5:30:16 PM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/heap.cfa
r68f36f4 r0f89d4f 208 208 209 209 #if BUCKETLOCK == LOCKFREE 210 static inline Link(HeapManager.Storage) * getNext( HeapManager.Storage * this ) { return &this->header.kind.real.next; }210 static inline Link(HeapManager.Storage) * ?`next( HeapManager.Storage * this ) { return &this->header.kind.real.next; } 211 211 static inline void ?{}( HeapManager.FreeHeader & ) {} 212 212 static inline void ^?{}( HeapManager.FreeHeader & ) {} … … 665 665 #else 666 666 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 works667 typeof(p) temp = ( p )`next->top; // FIX ME: direct assignent fails, initialization works 668 668 p = temp; 669 669 #endif // BUCKETLOCK … … 901 901 return oaddr; 902 902 } // if 903 903 904 904 // change size, DO NOT preserve STICKY PROPERTIES. 905 905 free( oaddr );
Note: See TracChangeset
for help on using the changeset viewer.