Skip to content

Commit

Permalink
Delete debug code in malloc() on as/stdlib.c
Browse files Browse the repository at this point in the history
  • Loading branch information
hiromi-mi authored Jun 4, 2019
1 parent 395ef1b commit bb1c66b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions as/stdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ void *malloc(int size)
char *p = brk(0);
int size = 0x32000000;
brk(p + size);
// printf("init %d\n", p);
malloc_pointer_head = p;
malloc_remaining_size = size;
}
Expand All @@ -143,11 +142,6 @@ void *malloc(int size)
char *ret = malloc_pointer_head + 4;
malloc_pointer_head += size + 4;
malloc_remaining_size -= size + 4;

// printf("%d\n", malloc_remaining_size);
// printf("%d\n", size);
// printf("%d\n", ret);
// printf("%d\n", ret + size);
return ret;
}

Expand Down

0 comments on commit bb1c66b

Please sign in to comment.