mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Update memory-related defines
Set the correct defines in CMakeLists.txt and update another occurrences in scripts. JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
parent
6b18710bc1
commit
9f29cc168d
@ -72,12 +72,12 @@ project (JerryCore C ASM)
|
||||
CONFIG_ECMA_COMPACT_PROFILE_DISABLE_MATH_BUILTIN
|
||||
CONFIG_ECMA_COMPACT_PROFILE_DISABLE_JSON_BUILTIN)
|
||||
|
||||
# Memory management stress-test mode
|
||||
set(DEFINES_MEM_STRESS_TEST
|
||||
MEM_GC_BEFORE_EACH_ALLOC)
|
||||
# Memory management stress-test mode
|
||||
set(DEFINES_MEM_STRESS_TEST
|
||||
JMEM_GC_BEFORE_EACH_ALLOC)
|
||||
|
||||
# Memory statistics
|
||||
set(DEFINES_MEMORY_STATISTICS MEM_STATS)
|
||||
set(DEFINES_MEMORY_STATISTICS JMEM_STATS)
|
||||
|
||||
# Valgrind
|
||||
set(DEFINES_JERRY_VALGRIND JERRY_VALGRIND)
|
||||
|
||||
@ -43,7 +43,7 @@ function is_mem_stats_build
|
||||
[ -x "$1" ] || fail_msg "Engine '$1' is not executable"
|
||||
|
||||
tmpfile=`mktemp`
|
||||
"$1" --mem-stats $tmpfile 2>&1 | grep -- "Ignoring memory statistics option because of '!MEM_STATS' build configuration." 2>&1 > /dev/null
|
||||
"$1" --mem-stats $tmpfile 2>&1 | grep -- "Ignoring memory statistics option because of '!JMEM_STATS' build configuration." 2>&1 > /dev/null
|
||||
code=$?
|
||||
rm $tmpfile
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ function is_mem_stats_build() {
|
||||
[ -x "$1" ] || fail_msg "Engine '$1' is not executable"
|
||||
|
||||
tmpfile=`mktemp`
|
||||
"$1" --mem-stats $tmpfile 2>&1 | grep -- "Ignoring memory statistics option because of '!MEM_STATS' build configuration." 2>&1 > /dev/null
|
||||
"$1" --mem-stats $tmpfile 2>&1 | grep -- "Ignoring memory statistics option because of '!JMEM_STATS' build configuration." 2>&1 > /dev/null
|
||||
code=$?
|
||||
rm $tmpfile
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user