Improvement of pool allocator.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-08-06 17:03:36 +03:00
parent 5be41b44bb
commit 8f594aebfa
10 changed files with 462 additions and 500 deletions
+4 -3
View File
@@ -20,16 +20,15 @@
#define JERRY_MEM_POOL_INTERNAL
#include "mem-allocator.h"
#include "mem-pool.h"
#include "mem-poolman.h"
#include "test-common.h"
// Iterations count
const uint32_t test_iters = 16384;
const uint32_t test_iters = 1024;
// Subiterations count
const uint32_t test_max_sub_iters = 32;
const uint32_t test_max_sub_iters = 1024;
uint8_t *ptrs[test_max_sub_iters];
@@ -91,5 +90,7 @@ main (int __attr_unused___ argc,
stats.peak_allocated_chunks);
#endif /* MEM_STATS */
mem_finalize (false);
return 0;
} /* main */