Ignore:
Timestamp:
Sep 2, 2020, 1:13:28 PM (15 months ago)
Author:
m3zulfiq <m3zulfiq@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
3a4834b3, 73f1b1c
Parents:
f6fe597
Message:

alloc2.txt: added expected output file for test alloc2.cfa. heap.cfa: removed alignment bugs from realloc and resize with alignment. stdlib.hfa: removed debug prints from alloc interface. alloc2.cfa, malloc.cfa: uncommented tests that were previously commented because of a bug in realloc and resize.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/stdlib.hfa

    rf6fe597 rf76ff0b  
    179179
    180180                if ( Resize ) {
    181 //printf("1. $alloc_internal got: %p %p %lu %lu\n", Resize, Realloc, Align, Dim); // these prints are temporary
    182181                        ptr = (T*) (void *) resize( (void *)Resize, Align, Dim * size );
    183182                } else if ( Realloc ) {
    184183                        if (Fill.tag != '0') copy_end = min(malloc_size( Realloc ), Dim * size);
    185 //printf("2. $alloc_internal got: %p %p %lu %lu\n", Resize, Realloc, Align, Dim);
    186184                        ptr = (T*) (void *) realloc( (void *)Realloc, Align, Dim * size );
    187185                } else {
    188 //printf("3. $alloc_internal got: %p %p %lu %lu\n", Resize, Realloc, Align, Dim);
    189186                        ptr = (T*) (void *) memalign( Align, Dim * size );
    190187                }
Note: See TracChangeset for help on using the changeset viewer.