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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user