Changeset ada0246d
- Timestamp:
- May 27, 2020, 3:14:50 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a491a3c
- Parents:
- c19bc90
- Location:
- libcfa/src
- Files:
-
- 2 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/Makefile.am
rc19bc90 rada0246d 11 11 ## Created On : Sun May 31 08:54:01 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Sun May 17 21:10:26202014 ## Update Count : 24 313 ## Last Modified On : Tue May 26 14:03:18 2020 14 ## Update Count : 244 15 15 ############################################################################### 16 16 … … 41 41 headers_nosrc = bitmanip.hfa math.hfa gmp.hfa time_t.hfa clock.hfa \ 42 42 bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa containers/list.hfa 43 headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \43 headers = common.hfa fstream.hfa heap.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa \ 44 44 containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/stackLockFree.hfa containers/vector.hfa 45 45 -
libcfa/src/concurrency/coroutine.cfa
rc19bc90 rada0246d 10 10 // Created On : Mon Nov 28 12:27:26 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Feb 4 12:29:25202013 // Update Count : 1612 // Last Modified On : Tue May 26 22:06:09 2020 13 // Update Count : 21 14 14 // 15 15 … … 18 18 #include "coroutine.hfa" 19 19 20 extern "C" {21 20 #include <stddef.h> 22 21 #include <malloc.h> … … 24 23 #include <string.h> 25 24 #include <unistd.h> 26 // use this define to make unwind.h play nice, definetely a hack 25 #include <sys/mman.h> // mprotect 26 extern "C" { 27 // use this define to make unwind.h play nice, definitely a hack 27 28 #define HIDE_EXPORTS 28 29 #include <unwind.h> 29 30 #undef HIDE_EXPORTS 30 #include <sys/mman.h>31 31 } 32 32 -
libcfa/src/concurrency/kernel.cfa
rc19bc90 rada0246d 10 10 // Created On : Tue Jan 17 12:27:26 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Feb 4 13:03:15202013 // Update Count : 5 812 // Last Modified On : Tue May 26 22:05:19 2020 13 // Update Count : 59 14 14 // 15 15 … … 21 21 #include <errno.h> 22 22 #include <string.h> 23 extern "C" {24 23 #include <stdio.h> 25 24 #include <fenv.h> 26 #include <sys/resource.h>27 25 #include <signal.h> 28 26 #include <unistd.h> 29 27 #include <limits.h> // PTHREAD_STACK_MIN 30 28 #include <sys/mman.h> // mprotect 29 extern "C" { 30 #include <sys/resource.h> 31 31 } 32 32 -
libcfa/src/heap.cfa
rc19bc90 rada0246d 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun May 17 20:58:17202013 // Update Count : 7 6212 // Last Modified On : Wed May 27 15:08:49 2020 13 // Update Count : 770 14 14 // 15 15 … … 20 20 #include <string.h> // memset, memcpy 21 21 #include <limits.h> // ULONG_MAX 22 extern "C" { 22 #include <malloc.h> // memalign, malloc_usable_size 23 23 #include <sys/mman.h> // mmap, munmap 24 } // extern "C"25 24 26 25 #include "bits/align.hfa" // libPow2 … … 29 28 #include "startup.hfa" // STARTUP_PRIORITY_MEMORY 30 29 //#include "stdlib.hfa" // bsearchl 31 #include "malloc.h"32 30 #include "bitmanip.hfa" // ceiling 33 31 -
libcfa/src/stdhdr/malloc.h
rc19bc90 rada0246d 10 10 // Created On : Thu Jul 20 15:58:16 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Apr 16 22:44:06202013 // Update Count : 1 312 // Last Modified On : Wed May 27 14:13:14 2020 13 // Update Count : 18 14 14 // 15 16 17 size_t default_mmap_start(); // CFA extras18 size_t default_heap_expansion();19 20 bool traceHeap();21 bool traceHeapOn();22 bool traceHeapOff();23 24 bool traceHeapTerm();25 bool traceHeapTermOn();26 bool traceHeapTermOff();27 28 bool checkFree();29 bool checkFreeOn();30 bool checkFreeOff();31 32 extern "C" {33 void * aalloc( size_t noOfElems, size_t elemSize );34 void * amemalign( size_t alignment, size_t noOfElems, size_t elemSize );35 void * cmemalign( size_t alignment, size_t noOfElems, size_t elemSize );36 size_t malloc_alignment( void * );37 bool malloc_zero_fill( void * );38 size_t malloc_size( void * );39 int malloc_stats_fd( int fd );40 } // extern "C"41 15 42 16 extern "C" { 43 17 #include_next <malloc.h> // has internal check for multiple expansion 44 18 } // extern "C" 19 20 #include <heap.hfa> 45 21 46 22 // Local Variables: // -
libcfa/src/stdlib.hfa
rc19bc90 rada0246d 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 13 17:23:51202013 // Update Count : 43 512 // Last Modified On : Tue May 26 22:50:08 2020 13 // Update Count : 439 14 14 // 15 15 … … 19 19 #include "bits/align.hfa" 20 20 21 #include <malloc.h> 21 22 #include <stdlib.h> // *alloc, strto*, ato* 22 23 23 24 // Reduce includes by explicitly defining these routines. 24 25 extern "C" { 25 void * aalloc( size_t dim, size_t elemSize ); // CFA heap26 void * resize( void * oaddr, size_t size ); // CFA heap27 void * memalign( size_t align, size_t size ); // malloc.h28 void * amemalign( size_t align, size_t dim, size_t elemSize ); // CFA heap29 void * cmemalign( size_t align, size_t noOfElems, size_t elemSize ); // CFA heap30 size_t malloc_size( void * addr ); // CFA heap31 size_t malloc_usable_size( void * ptr ); // malloc.h32 26 void * memset( void * dest, int fill, size_t size ); // string.h 33 27 void * memcpy( void * dest, const void * src, size_t size ); // string.h 34 28 } // extern "C" 35 36 void * resize( void * oaddr, size_t nalign, size_t size ); // CFA heap37 void * realloc( void * oaddr, size_t nalign, size_t size ); // CFA heap38 29 39 30 //--------------------------------------- … … 91 82 return posix_memalign( (void **)ptr, align, sizeof(T) ); // C posix_memalign 92 83 } // posix_memalign 84 85 T * valloc( void ) { 86 return (T *)valloc( sizeof(T) ); // C valloc 87 } // valloc 88 89 T * pvalloc( void ) { 90 return (T *)pvalloc( sizeof(T) ); // C pvalloc 91 } // pvalloc 93 92 } // distribution 94 93
Note: See TracChangeset
for help on using the changeset viewer.