Changeset 25a1cb0 for libcfa/src/heap.cfa
- Timestamp:
- Sep 1, 2020, 1:18:10 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:
- 86c1f1c3, a77496cb
- Parents:
- 8d8ac3b (diff), d3aa64f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/heap.cfa
r8d8ac3b r25a1cb0 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.