Compare commits
No commits in common. "8eea6251cec10c103e1202e909fcf8c63dbf0ed9" and "7ad95aa11e79cc7b6eea72d0c7da5f208472e25e" have entirely different histories.
8eea6251ce
...
7ad95aa11e
@ -1,4 +1,4 @@
|
|||||||
define HEAP_SIZE = 0x8000;
|
define HEAP_SIZE = 0x030;
|
||||||
global heap[HEAP_SIZE] = 0;
|
global heap[HEAP_SIZE] = 0;
|
||||||
|
|
||||||
define PADDING_SIZE = 4;
|
define PADDING_SIZE = 4;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
global HEAP_SIZE = 0x0030;
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
local ptr1;
|
local ptr1;
|
||||||
@ -9,11 +7,7 @@ main()
|
|||||||
ptr1 = galloc(1);
|
ptr1 = galloc(1);
|
||||||
test_int(ptr1, heap + LOCATION_DATA, "");
|
test_int(ptr1, heap + LOCATION_DATA, "");
|
||||||
free(ptr1);
|
free(ptr1);
|
||||||
|
|
||||||
ptr1 = galloc(1);
|
ptr1 = galloc(1);
|
||||||
test_int(ptr1, heap + LOCATION_DATA, "alloc after free");
|
test_int(ptr1, heap + LOCATION_DATA, "alloc after free");
|
||||||
free(ptr1);
|
ptr2 = galloc(1);
|
||||||
|
|
||||||
ptr2 = galloc(0x9000);
|
|
||||||
test_int(ptr2, 0, "alloc too big");
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user