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 34
34
*/
35
35
#define CONFIG_MEM_POOL_CHUNK_SIZE (8)
36
36
37
- /**
38
- * Size of heap chunk
39
- */
40
- #define CONFIG_MEM_HEAP_CHUNK_SIZE (64)
41
-
42
37
/**
43
38
* Size of heap
44
39
*/
Original file line number Diff line number Diff line change @@ -199,13 +199,6 @@ extern void __noreturn jerry_fatal (jerry_fatal_code_t);
199
199
* Alignment
200
200
*/
201
201
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
-
209
202
/**
210
203
* Aligns @a value to @a alignment.
211
204
*
Original file line number Diff line number Diff line change 28
28
*/
29
29
#define MEM_HEAP_SIZE ((size_t) (CONFIG_MEM_HEAP_AREA_SIZE))
30
30
31
- /**
32
- * Size of heap chunk
33
- */
34
- #define MEM_HEAP_CHUNK_SIZE ((size_t) (CONFIG_MEM_HEAP_CHUNK_SIZE))
35
-
36
31
/**
37
32
* Size of pool chunk
38
33
*/
Original file line number Diff line number Diff line change @@ -90,12 +90,6 @@ void mem_heap_valgrind_freya_mempool_request (void)
90
90
# define VALGRIND_FREYA_FREELIKE_SPACE (p )
91
91
#endif /* JERRY_VALGRIND_FREYA */
92
92
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
-
99
93
/* Calculate heap area size, leaving space for a pointer to the free list */
100
94
#define MEM_HEAP_AREA_SIZE (MEM_HEAP_SIZE - MEM_ALIGNMENT)
101
95
#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 */
551
545
mem_heap_free_block (original_p , original_p -> size );
552
546
} /* mem_heap_free_block_size_stored */
553
547
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
-
565
548
/**
566
549
* Compress pointer
567
550
*
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ extern void mem_heap_free_block_size_stored (void *);
39
39
extern uintptr_t mem_heap_compress_pointer (const void * );
40
40
extern void * mem_heap_decompress_pointer (uintptr_t );
41
41
extern bool mem_is_heap_pointer (const void * );
42
- extern size_t __attr_pure___ mem_heap_recommend_allocation_size (size_t );
43
42
extern void mem_heap_print ();
44
43
45
44
#ifdef MEM_STATS
You can’t perform that action at this time.
0 commit comments