summaryrefslogtreecommitdiff
path: root/supervisor/memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'supervisor/memory.h')
-rw-r--r--[-rwxr-xr-x]supervisor/memory.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/supervisor/memory.h b/supervisor/memory.h
index 0f820eac1..0aa38eec3 100755..100644
--- a/supervisor/memory.h
+++ b/supervisor/memory.h
@@ -36,12 +36,12 @@
#include <stddef.h>
typedef struct {
- uint32_t* ptr;
+ uint32_t *ptr;
} supervisor_allocation;
-void free_memory(supervisor_allocation* allocation);
+void free_memory(supervisor_allocation *allocation);
// Find the allocation with the given ptr, NULL if not found. When called from the context of a
// supervisor_move_memory() callback, finds the allocation that had that ptr *before* the move, but
@@ -49,9 +49,9 @@ void free_memory(supervisor_allocation* allocation);
// When called with NULL, may return either NULL or an unused allocation whose ptr is NULL (this is
// a feature used internally in allocate_memory to save code size). Passing the return value to
// free_memory() is a permissible no-op in either case.
-supervisor_allocation* allocation_from_ptr(void *ptr);
+supervisor_allocation *allocation_from_ptr(void *ptr);
-supervisor_allocation* allocate_remaining_memory(void);
+supervisor_allocation *allocate_remaining_memory(void);
// Allocate a piece of a given length in bytes. If high_address is true then it should be allocated
// at a lower address from the top of the stack. Otherwise, addresses will increase starting after
@@ -62,13 +62,13 @@ supervisor_allocation* allocate_remaining_memory(void);
// The ptr of the returned supervisor_allocation will change at that point. If you need to be
// notified of that, add your own callback function at the designated place near the end of
// supervisor_move_memory().
-supervisor_allocation* allocate_memory(uint32_t length, bool high_address, bool movable);
+supervisor_allocation *allocate_memory(uint32_t length, bool high_address, bool movable);
static inline size_t align32_size(size_t size) {
return (size + 3) & ~3;
}
-size_t get_allocation_length(supervisor_allocation* allocation);
+size_t get_allocation_length(supervisor_allocation *allocation);
// Called after the GC heap is freed, transfers movable allocations from the GC heap to the
// supervisor heap and compacts the supervisor heap.