Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/heap.cfa

    r0f89d4f r849fb370  
    1010// Created On       : Tue Dec 19 21:58:35 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May 27 15:08:49 2020
    13 // Update Count     : 770
     12// Last Modified On : Sun Jul 19 17:37:21 2020
     13// Update Count     : 806
    1414//
    1515
     
    208208
    209209#if BUCKETLOCK == LOCKFREE
    210 static inline Link(HeapManager.Storage) * ?`next( HeapManager.Storage * this ) { return &this->header.kind.real.next; }
    211 static inline void ?{}( HeapManager.FreeHeader & ) {}
    212 static inline void ^?{}( HeapManager.FreeHeader & ) {}
     210static inline {
     211        Link(HeapManager.Storage) * ?`next( HeapManager.Storage * this ) { return &this->header.kind.real.next; }
     212        void ?{}( HeapManager.FreeHeader & ) {}
     213        void ^?{}( HeapManager.FreeHeader & ) {}
     214} // distribution
    213215#endif // LOCKFREE
    214216
     
    10961098        // Returns original total allocation size (not bucket size) => array size is dimension * sizeif(T).
    10971099        size_t malloc_size( void * addr ) {
    1098           if ( unlikely( addr == 0p ) ) return false;           // null allocation is not zero fill
     1100          if ( unlikely( addr == 0p ) ) return 0;                       // null allocation has zero size
    10991101                HeapManager.Storage.Header * header = headerAddr( addr );
    11001102                if ( (header->kind.fake.alignment & 1) == 1 ) { // fake header ?
     
    11061108        // Set allocation size and return previous size.
    11071109        size_t $malloc_size_set( void * addr, size_t size ) {
    1108           if ( unlikely( addr == 0p ) ) return false;           // null allocation is not zero fill
     1110          if ( unlikely( addr == 0p ) ) return 0;                       // null allocation has 0 size
    11091111                HeapManager.Storage.Header * header = headerAddr( addr );
    11101112                if ( (header->kind.fake.alignment & 1) == 1 ) { // fake header ?
Note: See TracChangeset for help on using the changeset viewer.