Add heap size limit
to solve #342 JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
This commit is contained in:
@@ -53,6 +53,8 @@
|
||||
*/
|
||||
#ifndef CONFIG_MEM_HEAP_AREA_SIZE
|
||||
# define CONFIG_MEM_HEAP_AREA_SIZE (256 * 1024)
|
||||
#elif CONFIG_MEM_HEAP_AREA_SIZE > (256 * 1024)
|
||||
# error "Currently, maximum 256 kilobytes heap size is supported"
|
||||
#endif /* !CONFIG_MEM_HEAP_AREA_SIZE */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user