Changeset 7cfef0d for libcfa/src/heap.cfa
- Timestamp:
- Aug 24, 2020, 8:34:24 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 0254454
- Parents:
- 97cba9f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/heap.cfa
r97cba9f r7cfef0d 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 12 16:43:38202013 // Update Count : 9 0212 // Last Modified On : Mon Aug 24 20:29:24 2020 13 // Update Count : 926 14 14 // 15 15 … … 27 27 #include "bits/locks.hfa" // __spinlock_t 28 28 #include "startup.hfa" // STARTUP_PRIORITY_MEMORY 29 //#include "stdlib.hfa" // bsearchl 30 #include "bitmanip.hfa" // ceiling29 #include "math.hfa" // ceiling 30 #include "bitmanip.hfa" // is_pow2, ceiling2 31 31 32 32 #define MIN(x, y) (y > x ? x : y) … … 651 651 #else 652 652 // for ( HeapManager.Storage * p = top( freeLists[i].freeList ); p != 0p; p = (p)`next->top ) { 653 for ( HeapManager.Storage * p = top( freeLists[i].freeList ); p != 0p; /* p = getNext( p )->top */) { 654 typeof(p) temp = (( p )`next)->top; // FIX ME: direct assignent fails, initialization works 655 p = temp; 653 // for ( HeapManager.Storage * p = top( freeLists[i].freeList ); p != 0p; /* p = getNext( p )->top */) { 654 for ( HeapManager.Storage * p ;; /* p = getNext( p )->top */) { 655 HeapManager.Storage * temp = p->header.kind.real.next.top; // FIX ME: direct assignent fails, initialization works` 656 // typeof(p) temp = (( p )`next)->top; // FIX ME: direct assignent fails, initialization works` 657 // p = temp; 656 658 #endif // BUCKETLOCK 657 659 total += size;
Note: See TracChangeset
for help on using the changeset viewer.