source: libcfa/src/heap.hfa @ dd23e66

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since dd23e66 was dd23e66, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

add default_heap_exhausted, update resize/realloc with alignment, fix cmemalignNoStats to match callocNoStats

  • Property mode set to 100644
File size: 1.4 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 : Wed Aug  5 14:55:55 2020
13// Update Count     : 14
14//
15
16#pragma once
17
18size_t default_mmap_start();                                                    // CFA extras
19size_t default_heap_expansion();
20bool default_heap_exhausted();                                                  // unsafe to call printf!
21
22bool traceHeap();
23bool traceHeapOn();
24bool traceHeapOff();
25
26bool traceHeapTerm();
27bool traceHeapTermOn();
28bool traceHeapTermOff();
29
30bool checkFree();
31bool checkFreeOn();
32bool checkFreeOff();
33
34extern "C" {
35        void * aalloc( size_t dim, size_t elemSize );
36        void * resize( void * oaddr, size_t size );
37        void * amemalign( size_t align, size_t dim, size_t elemSize );
38        void * cmemalign( size_t align, size_t dim, size_t elemSize );
39        size_t malloc_alignment( void * addr );
40        bool malloc_zero_fill( void * addr );
41        size_t malloc_size( void * addr );
42        size_t malloc_usable_size( void * addr );
43        int malloc_stats_fd( int fd );
44} // extern "C"
45
46void * resize( void * oaddr, size_t nalign, size_t size );
47void * realloc( void * oaddr, size_t nalign, size_t size );
48
49// Local Variables: //
50// mode: c //
51// tab-width: 4 //
52// End: //
Note: See TracBrowser for help on using the repository browser.