Changeset 0bdfcc3 for libcfa/src
- Timestamp:
- Nov 1, 2022, 10:06:24 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- e50d9cb8
- Parents:
- c7f12a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/heap.cfa
rc7f12a4 r0bdfcc3 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Oct 30 15:33:13202213 // Update Count : 158 012 // Last Modified On : Sun Oct 30 20:56:20 2022 13 // Update Count : 1584 14 14 // 15 15 … … 499 499 if ( unlikely( ! heapMasterBootFlag ) ) heapMasterCtor(); 500 500 501 lock( heapMaster.mgrLock ); // protect heapMaster counters501 lock( heapMaster.mgrLock ); // protect heapMaster counters 502 502 503 503 // get storage for heap manager … … 810 810 811 811 size_t increase = ceiling2( size > heapExpand ? size : heapExpand, libAlign() ); 812 // Do not call abort or strerror( errno ) as they may call malloc.813 812 if ( unlikely( sbrk( increase ) == (void *)-1 ) ) { // failed, no memory ? 814 813 unlock( extLock ); 815 abort( NO_MEMORY_MSG, size ); // no memory814 abort( NO_MEMORY_MSG, size ); // give up 816 815 } // if 817 816
Note: See TracChangeset
for help on using the changeset viewer.