Changes in libcfa/src/heap.cfa [4ea1c6d:1e034d9]
- File:
-
- 1 edited
-
libcfa/src/heap.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/heap.cfa
r4ea1c6d r1e034d9 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Nov 29 17:33:58201913 // Update Count : 6 4112 // Last Modified On : Sun Nov 24 17:56:15 2019 13 // Update Count : 638 14 14 // 15 15 … … 71 71 72 72 73 // static bool traceHeapTerm = false; 74 75 // inline bool traceHeapTerm() { 76 // return traceHeapTerm; 77 // } // traceHeapTerm 78 79 // bool traceHeapTermOn() { 80 // bool temp = traceHeapTerm; 81 // traceHeapTerm = true; 82 // return temp; 83 // } // traceHeapTermOn 84 85 // bool traceHeapTermOff() { 86 // bool temp = traceHeapTerm; 87 // traceHeapTerm = false; 88 // return temp; 89 // } // traceHeapTermOff 90 91 73 92 enum { 74 93 // Define the default extension heap amount in units of bytes. When the uC++ supplied heap reaches the brk address, … … 96 115 if ( allocFree != 0 ) { 97 116 // DO NOT USE STREAMS AS THEY MAY BE UNAVAILABLE AT THIS POINT. 98 char helpText[512];99 int len = snprintf( helpText, sizeof(helpText), "CFA warning (UNIX pid:%ld) : program terminating with %u(0x%x) bytes of storage allocated but not freed.\n"100 "Possible cause is unfreed storage allocated by the program or system/library routines called from the program.\n",101 (long int)getpid(), allocFree, allocFree ); // always print the UNIX pid102 __cfaabi_bits_write( STDERR_FILENO, helpText, len ); // print debug/nodebug117 // char helpText[512]; 118 // int len = snprintf( helpText, sizeof(helpText), "CFA warning (UNIX pid:%ld) : program terminating with %u(0x%x) bytes of storage allocated but not freed.\n" 119 // "Possible cause is unfreed storage allocated by the program or system/library routines called from the program.\n", 120 // (long int)getpid(), allocFree, allocFree ); // always print the UNIX pid 121 // __cfaabi_dbg_bits_write( STDERR_FILENO, helpText, len ); // print debug/nodebug 103 122 } // if 104 123 } // prtUnfreed
Note:
See TracChangeset
for help on using the changeset viewer.