Changes in libcfa/src/heap.cfa [1e7a765:c58ead7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/heap.cfa
r1e7a765 rc58ead7 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Sep 30 17:31:15202313 // Update Count : 161 712 // Last Modified On : Mon Sep 11 11:21:10 2023 13 // Update Count : 1615 14 14 // 15 15 … … 53 53 #define TLSMODEL __attribute__(( tls_model("initial-exec") )) 54 54 55 #define __STATISTICS__55 //#define __STATISTICS__ 56 56 57 57 enum { … … 681 681 682 682 static HeapStatistics & collectStats( HeapStatistics & stats ) with( heapMaster ) { 683 lock( heapMaster.mgrLock );683 lock( mgrLock ); 684 684 685 685 stats += heapMaster.stats; … … 688 688 } // for 689 689 690 unlock( heapMaster.mgrLock );690 unlock( mgrLock ); 691 691 return stats; 692 692 } // collectStats 693 693 694 694 static inline void clearStats() { 695 lock( heapMaster.mgrLock );695 lock( mgrLock ); 696 696 697 697 // Zero the heap master and all active thread heaps. … … 701 701 } // for 702 702 703 unlock( heapMaster.mgrLock );703 unlock( mgrLock ); 704 704 } // clearStats 705 705 #endif // __STATISTICS__
Note:
See TracChangeset
for help on using the changeset viewer.