Ignore:
Timestamp:
Aug 6, 2018, 2:50:03 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
58b6d1b
Parents:
ff593a3
Message:

Replace extension-less headers with .hfa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/heap.cfa

    rff593a3 r73abe95  
    1 // 
     1//
    22// Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo
    33//
    44// The contents of this file are covered under the licence agreement in the
    55// file "LICENCE" distributed with Cforall.
    6 // 
    7 // heap.c -- 
    8 // 
     6//
     7// heap.c --
     8//
    99// Author           : Peter A. Buhr
    1010// Created On       : Tue Dec 19 21:58:35 2017
     
    1212// Last Modified On : Tue Jul 31 18:08:50 2018
    1313// Update Count     : 470
    14 // 
     14//
    1515
    1616#include <unistd.h>                                                                             // sbrk, sysconf
     
    2222} // extern "C"
    2323
    24 #include "bits/align.h"                                                                 // libPow2
    25 #include "bits/defs.h"                                                                  // likely, unlikely
    26 #include "bits/locks.h"                                                                 // __spinlock_t
    27 #include "startup.h"                                                                    // STARTUP_PRIORITY_MEMORY
     24#include "bits/align.hfa"                                                                       // libPow2
     25#include "bits/defs.hfa"                                                                        // likely, unlikely
     26#include "bits/locks.hfa"                                                                       // __spinlock_t
     27#include "startup.hfa"                                                                  // STARTUP_PRIORITY_MEMORY
    2828#include "stdlib"                                                                               // bsearchl
    2929#include "malloc.h"
     
    283283static void ?{}( HeapManager & manager ) with ( manager ) {
    284284    pageSize = sysconf( _SC_PAGESIZE );
    285    
     285
    286286    for ( unsigned int i = 0; i < NoBucketSizes; i += 1 ) { // initialize the free lists
    287287                freeLists[i].blockSize = bucketSizes[i];
     
    760760                _Bool mapped __attribute__(( unused )) = headers( "calloc", area, header, freeElem, asize, alignment );
    761761                #ifndef __CFA_DEBUG__
    762                 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 
     762                // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero.
    763763                if ( ! mapped )
    764764                #endif // __CFA_DEBUG__
     
    783783                _Bool mapped __attribute__(( unused )) = headers( "cmemalign", area, header, freeElem, asize, alignment );
    784784                #ifndef __CFA_DEBUG__
    785                 // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 
     785                // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero.
    786786                if ( ! mapped )
    787787                #endif // __CFA_DEBUG__
     
    828828                        _Bool mapped __attribute__(( unused )) = headers( "realloc", area, header, freeElem, asize, alignment );
    829829                        #ifndef __CFA_DEBUG__
    830                         // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero. 
     830                        // Mapped storage is zero filled, but in debug mode mapped memory is scrubbed in doMalloc, so it has to be reset to zero.
    831831                        if ( ! mapped )
    832832                        #endif // __CFA_DEBUG__
Note: See TracChangeset for help on using the changeset viewer.