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:
Zsolt Borbély 2016-05-22 23:19:10 +02:00
parent 6b18710bc1
commit 9f29cc168d
3 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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

View File

@ -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