Introducing dynamically adjustable heap usage limit, so that GC tries to free heap space, when heap usage reached the limit.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-04-24 18:46:37 +03:00
parent 9a7a644f50
commit f6b3943ffd
2 changed files with 50 additions and 0 deletions
+5
View File
@@ -55,6 +55,11 @@
# define CONFIG_MEM_HEAP_AREA_SIZE (256 * 1024)
#endif /* !CONFIG_MEM_HEAP_AREA_SIZE */
/**
* Desired limit of heap usage
*/
#define CONFIG_MEM_HEAP_DESIRED_LIMIT (CONFIG_MEM_HEAP_AREA_SIZE / 32)
/**
* Log2 of maximum possible offset in the heap
*