Changeset 7117ac3
- Timestamp:
- Sep 8, 2018, 8:58:17 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- e15ba975
- Parents:
- bec4d24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/heap.cfa
rbec4d24 r7117ac3 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 23 06:11:44201813 // Update Count : 51 112 // Last Modified On : Thu Sep 6 09:01:30 2018 13 // Update Count : 513 14 14 // 15 15 … … 329 329 #endif // __CFA_DEBUG__ 330 330 331 assert( heapManager.heapBegin == 0 ); // always perform check, done once 332 heapManager{}; 331 //assert( heapManager.heapBegin != 0 ); 332 //heapManager{}; 333 if ( heapManager.heapBegin == 0 ) heapManager{}; 333 334 } // memory_startup 334 335 … … 700 701 701 702 static inline void * mallocNoStats( size_t size ) { // necessary for malloc statistics 702 assert( heapManager.heapBegin != 0 ); 703 //assert( heapManager.heapBegin != 0 ); 704 if ( unlikely( heapManager.heapBegin == 0 ) ) heapManager{}; // called before memory_startup ? 703 705 void * area = doMalloc( size ); 704 706 if ( unlikely( area == 0 ) ) errno = ENOMEM; // POSIX
Note: See TracChangeset
for help on using the changeset viewer.