Ioannis Koutras
|
899a89adbf
Fixed remove_block() for fixed lists.
|
13 yıl önce |
Ioannis Koutras
|
28552fef31
Fixed some old calls in split() and moved some unused local variables in split() and coalesce().
|
13 yıl önce |
Ioannis Koutras
|
0533faeb5e
More specialized tests on space-aware allocators.
|
13 yıl önce |
Ioannis Koutras
|
d301b9ca3d
Reset the allocator's border pointer in case it is next_block and will be coalesced with the current block.
|
13 yıl önce |
Ioannis Koutras
|
843e595494
Remove next_block from fixed / free list in case it is required during coalescing.
|
13 yıl önce |
Ioannis Koutras
|
872b47f270
Introduced a way to remove blocks from both fixed and the free lists of a heap.
|
13 yıl önce |
Ioannis Koutras
|
d6e611f46c
Initial support for coalescing three blocks.
|
13 yıl önce |
Ioannis Koutras
|
a1a9213770
Missed a star.
|
13 yıl önce |
Ioannis Koutras
|
781f8072c3
Introduce is_free() and get_dlnext() to allow coalescing the current and next block.
|
13 yıl önce |
Ioannis Koutras
|
c60c7e5bae
Update set_size_and_used() and set_size_and_free() calls to use the allocator argument.
|
13 yıl önce |
Ioannis Koutras
|
5abecf9dfd
set_size_and_free() and set_size_and_free() should also update the previous_size of the next block if the latter exists.
|
13 yıl önce |
Ioannis Koutras
|
436a550e8d
No need for stdio.h on coalesce.c
|
13 yıl önce |
Ioannis Koutras
|
ee4b032338
mark_used() and mark_free() now properly mark the previous_size record of the next block if there is one.
|
13 yıl önce |
Ioannis Koutras
|
89ce612d97
It is safe to use bool datatypes in Leon3 platform.
|
13 yıl önce |
Ioannis Koutras
|
6312088e35
Prevent overflow of new_size, check if new_size is also equal to min_split_size, mark block as used regardless of splitting's activation.
|
13 yıl önce |
Ioannis Koutras
|
16ad57625b
Block is always marked used as used, no need to mark it inside a split try.
|
13 yıl önce |
Ioannis Koutras
|
1b99b0d3e0
Check for owner before coalescing only if block has ownsership information.
|
13 yıl önce |
Ioannis Koutras
|
5a1c9e8c2a
CMake will now complain if the user does not set min. splitting and max. coalescing sizes.
|
13 yıl önce |
Ioannis Koutras
|
77e944ace9
Print the coalescing and splitting sizes during cmake configuration.
|
13 yıl önce |
Ioannis Koutras
|
beb0dcc26d
Disabled used blocks head and roving pointer for the time being.
|
13 yıl önce |
Ioannis Koutras
|
2b39847c8b
Formalized two tests in examples/test_for_memory_space_aware.c
|
13 yıl önce |
Ioannis Koutras
|
d8f75e89b3
Fixed best_fit_on_freelist() for doubly-linked lists.
|
13 yıl önce |
Ioannis Koutras
|
440e0ee9be
Don't worry if ptr is NULL, this check should have been made one level above.
|
13 yıl önce |
Ioannis Koutras
|
a5426b5877
Corrected the remove_block() calls.
|
13 yıl önce |
Ioannis Koutras
|
50d0b51c8a
No need to use ptr pointer, set previous node to null for head only if it exists.
|
13 yıl önce |
Ioannis Koutras
|
84e4947ba2
No need to check ptr for NULL before searching the free list if the fixed lists are disabled.
|
13 yıl önce |
Ioannis Koutras
|
8f4e91a195
Properly mark free a block when coalescing is not activated.
|
13 yıl önce |
Ioannis Koutras
|
a31c78ae81
push_block() sets now the proper pointers.
|
13 yıl önce |
Ioannis Koutras
|
9b6010c6cd
Fixed remove_block() in a way similar to push_block()
|
13 yıl önce |
Ioannis Koutras
|
a716fcaf2e
Added -std=c99 CFLAG in sparc-elf-gcc toolchain.
|
13 yıl önce |