Remove heap allocator's block headers, replacing them with bitmap at start of heap.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#define test_heap_size (32 * 1024)
|
||||
|
||||
// Iterations count
|
||||
#define test_iters (64 * 1024)
|
||||
#define test_iters (4 * 1024)
|
||||
|
||||
// Subiterations count
|
||||
#define test_sub_iters 32
|
||||
@@ -75,16 +75,13 @@ test_heap_give_some_memory_back (mem_try_give_memory_back_severity_t severity)
|
||||
}
|
||||
} /* test_heap_give_some_memory_back */
|
||||
|
||||
uint8_t test_native_heap[test_heap_size] __attribute__ ((aligned (JERRY_MAX (MEM_ALIGNMENT,
|
||||
MEM_HEAP_CHUNK_SIZE))));
|
||||
|
||||
int
|
||||
main (int __attr_unused___ argc,
|
||||
char __attr_unused___ **argv)
|
||||
{
|
||||
TEST_INIT ();
|
||||
|
||||
mem_heap_init (test_native_heap, sizeof (test_native_heap));
|
||||
mem_heap_init ();
|
||||
|
||||
mem_register_a_try_give_memory_back_callback (test_heap_give_some_memory_back);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user