mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-09-11 08:55:23 +03:00
part 2 of FORCE_ALIGNMENT fix for arduino targets.
When FORCE_ALIGNMENT was introduced for pointer aligment on 8-bit arduino targets (See idris-lang@47cd264) it was not applied to the initialization of the cheney algorithm during garbage collection. The fix modifies the start of the heap location in the same way the FORCE_ALIGNMENT-define does for the initialization of the FP-heap in alloc_heap(...) in file idris_heap.c. To prevent duplicate code this logic has been put in the function aligned_heap_pointer(...).
This commit is contained in:
parent
376db080f2
commit
d2a81f50a9
@ -98,7 +98,7 @@ typedef struct {
|
||||
|
||||
void alloc_heap(Heap * heap, size_t heap_size, size_t growth, char * old);
|
||||
void free_heap(Heap * heap);
|
||||
|
||||
char* aligned_heap_pointer(char * heap);
|
||||
|
||||
#ifdef IDRIS_DEBUG
|
||||
void heap_check_all(Heap * heap);
|
||||
|
Loading…
Reference in New Issue
Block a user