File tree Expand file tree Collapse file tree 5 files changed +0
-35
lines changed
Expand file tree Collapse file tree 5 files changed +0
-35
lines changed Original file line number Diff line number Diff line change 3434 */
3535#define CONFIG_MEM_POOL_CHUNK_SIZE (8)
3636
37- /**
38- * Size of heap chunk
39- */
40- #define CONFIG_MEM_HEAP_CHUNK_SIZE (64)
41-
4237/**
4338 * Size of heap
4439 */
Original file line number Diff line number Diff line change @@ -199,13 +199,6 @@ extern void __noreturn jerry_fatal (jerry_fatal_code_t);
199199 * Alignment
200200 */
201201
202- /**
203- * Aligns @a value to @a alignment.
204- *
205- * Returns maximum positive value, that divides @a alignment and is less than or equal to @a value
206- */
207- #define JERRY_ALIGNDOWN (value , alignment ) ((alignment) * ((value) / (alignment)))
208-
209202/**
210203 * Aligns @a value to @a alignment.
211204 *
Original file line number Diff line number Diff line change 2828 */
2929#define MEM_HEAP_SIZE ((size_t) (CONFIG_MEM_HEAP_AREA_SIZE))
3030
31- /**
32- * Size of heap chunk
33- */
34- #define MEM_HEAP_CHUNK_SIZE ((size_t) (CONFIG_MEM_HEAP_CHUNK_SIZE))
35-
3631/**
3732 * Size of pool chunk
3833 */
Original file line number Diff line number Diff line change @@ -90,12 +90,6 @@ void mem_heap_valgrind_freya_mempool_request (void)
9090# define VALGRIND_FREYA_FREELIKE_SPACE (p )
9191#endif /* JERRY_VALGRIND_FREYA */
9292
93- /**
94- * Chunk size should satisfy the required alignment value
95- */
96- JERRY_STATIC_ASSERT (MEM_HEAP_CHUNK_SIZE % MEM_ALIGNMENT == 0 ,
97- MEM_HEAP_CHUNK_SIZE_must_be_multiple_of_MEM_ALIGNMENT );
98-
9993/* Calculate heap area size, leaving space for a pointer to the free list */
10094#define MEM_HEAP_AREA_SIZE (MEM_HEAP_SIZE - MEM_ALIGNMENT)
10195#define MEM_HEAP_END_OF_LIST ((mem_heap_free_t *const) ~((uint32_t) 0x0))
@@ -551,17 +545,6 @@ mem_heap_free_block_size_stored (void *ptr) /**< pointer to the memory block */
551545 mem_heap_free_block (original_p , original_p -> size );
552546} /* mem_heap_free_block_size_stored */
553547
554- /**
555- * Recommend allocation size based on chunk size.
556- *
557- * @return recommended allocation size
558- */
559- size_t __attr_pure___
560- mem_heap_recommend_allocation_size (size_t minimum_allocation_size ) /**< minimum allocation size */
561- {
562- return JERRY_ALIGNUP (minimum_allocation_size , MEM_HEAP_CHUNK_SIZE );
563- } /* mem_heap_recommend_allocation_size */
564-
565548/**
566549 * Compress pointer
567550 *
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ extern void mem_heap_free_block_size_stored (void *);
3939extern uintptr_t mem_heap_compress_pointer (const void * );
4040extern void * mem_heap_decompress_pointer (uintptr_t );
4141extern bool mem_is_heap_pointer (const void * );
42- extern size_t __attr_pure___ mem_heap_recommend_allocation_size (size_t );
4342extern void mem_heap_print ();
4443
4544#ifdef MEM_STATS
You can’t perform that action at this time.
0 commit comments