ADT
        ast-experimental
        enum
        forall-pointer-decay
        pthread-emulation
        qualifiedEnum
      
      
        
          | Last change
 on this file since 1ed9cb63 was             92aca37, checked in by Peter A. Buhr <pabuhr@…>, 5 years ago | 
        
          | 
formatting, temporarily remove default_heap_exhausted called when insufficient storage and abort, switch from bits/align to bitmanip routines, fix storage statistics in realloc, fix remaining tests for not aligned storage
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.5 KB | 
      
      
| Line |  | 
|---|
| 1 | // | 
|---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo | 
|---|
| 3 | // | 
|---|
| 4 | // The contents of this file are covered under the licence agreement in the | 
|---|
| 5 | // file "LICENCE" distributed with Cforall. | 
|---|
| 6 | // | 
|---|
| 7 | // heap.hfa -- | 
|---|
| 8 | // | 
|---|
| 9 | // Author           : Peter A. Buhr | 
|---|
| 10 | // Created On       : Tue May 26 11:23:55 2020 | 
|---|
| 11 | // Last Modified By : Peter A. Buhr | 
|---|
| 12 | // Last Modified On : Sat Aug  8 17:36:48 2020 | 
|---|
| 13 | // Update Count     : 16 | 
|---|
| 14 | // | 
|---|
| 15 |  | 
|---|
| 16 | #pragma once | 
|---|
| 17 |  | 
|---|
| 18 | size_t default_mmap_start();                                                    // CFA extras | 
|---|
| 19 | size_t default_heap_expansion(); | 
|---|
| 20 |  | 
|---|
| 21 | bool traceHeap(); | 
|---|
| 22 | bool traceHeapOn(); | 
|---|
| 23 | bool traceHeapOff(); | 
|---|
| 24 |  | 
|---|
| 25 | bool traceHeapTerm(); | 
|---|
| 26 | bool traceHeapTermOn(); | 
|---|
| 27 | bool traceHeapTermOff(); | 
|---|
| 28 |  | 
|---|
| 29 | bool checkFree(); | 
|---|
| 30 | bool checkFreeOn(); | 
|---|
| 31 | bool checkFreeOff(); | 
|---|
| 32 |  | 
|---|
| 33 | // supported mallopt options | 
|---|
| 34 | #ifndef M_MMAP_THRESHOLD | 
|---|
| 35 | #define M_MMAP_THRESHOLD (-1) | 
|---|
| 36 | #endif // M_TOP_PAD | 
|---|
| 37 | #ifndef M_TOP_PAD | 
|---|
| 38 | #define M_TOP_PAD (-2) | 
|---|
| 39 | #endif // M_TOP_PAD | 
|---|
| 40 |  | 
|---|
| 41 | extern "C" { | 
|---|
| 42 | void * aalloc( size_t dim, size_t elemSize ); | 
|---|
| 43 | void * resize( void * oaddr, size_t size ); | 
|---|
| 44 | void * amemalign( size_t align, size_t dim, size_t elemSize ); | 
|---|
| 45 | void * cmemalign( size_t align, size_t dim, size_t elemSize ); | 
|---|
| 46 | size_t malloc_alignment( void * addr ); | 
|---|
| 47 | bool malloc_zero_fill( void * addr ); | 
|---|
| 48 | size_t malloc_size( void * addr ); | 
|---|
| 49 | size_t malloc_usable_size( void * addr ); | 
|---|
| 50 | int malloc_stats_fd( int fd ); | 
|---|
| 51 | } // extern "C" | 
|---|
| 52 |  | 
|---|
| 53 | void * resize( void * oaddr, size_t nalign, size_t size ); | 
|---|
| 54 | void * realloc( void * oaddr, size_t nalign, size_t size ); | 
|---|
| 55 |  | 
|---|
| 56 | // Local Variables: // | 
|---|
| 57 | // mode: c // | 
|---|
| 58 | // tab-width: 4 // | 
|---|
| 59 | // End: // | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.