Ignore:
Timestamp:
Jul 28, 2020, 7:10:56 AM (15 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
15806ed
Parents:
7288c00
Message:

memalign - correct size to eliminate alignment offset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/heap.cfa

    r7288c00 r4cf617e  
    1010// Created On       : Tue Dec 19 21:58:35 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jul 20 23:00:32 2020
    13 // Update Count     : 808
     12// Last Modified On : Mon Jul 27 23:16:18 2020
     13// Update Count     : 815
    1414//
    1515
     
    805805        // address of header from malloc
    806806        HeapManager.Storage.Header * realHeader = headerAddr( addr );
     807        realHeader->kind.real.size = size;                                      // correct size to eliminate above alignment offset
    807808        // address of fake header * before* the alignment location
    808809        HeapManager.Storage.Header * fakeHeader = headerAddr( user );
Note: See TracChangeset for help on using the changeset viewer.